]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3755 export the rule status in the WS /api/issues/search
authorSimon Brandhof <simon.brandhof@gmail.com>
Fri, 17 May 2013 15:31:23 +0000 (17:31 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Fri, 17 May 2013 15:31:23 +0000 (17:31 +0200)
sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb

index 87d8a507599d5a113c0ed2e27e8e670bed31f04d..28d0b9ef08f0f86aa3b870b61555c7e0fb92fddb 100644 (file)
@@ -214,6 +214,7 @@ class Rule < ActiveRecord::Base
     hash = {:key => java_rule.ruleKey().toString()}
     hash[:name] = l10n_name if l10n_name
     hash[:desc] = l10n_desc if l10n_desc
+    hash[:status] = java_rule.getStatus() if java_rule.getStatus()
     hash
   end