diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-02-06 13:38:38 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-02-06 13:38:38 +0100 |
commit | 7ca213529391174bb124a77e93792f71d589a605 (patch) | |
tree | c1f22b4875accf0df7e36527f6101fc492c8c6bd /sonar-server/src/main/webapp/WEB-INF/app/models/issue.rb | |
parent | 66def29047707ed251bdb36423296302ea7885ba (diff) | |
download | sonarqube-7ca213529391174bb124a77e93792f71d589a605.tar.gz sonarqube-7ca213529391174bb124a77e93792f71d589a605.zip |
Revert "Revert SONAR-4785"
This reverts commit a42510b9e77d6ba9938f0d578e3b0253a136e4e1.
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF/app/models/issue.rb')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/models/issue.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/issue.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/issue.rb index c1d6e2d35ac..a3a34a3dd5d 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/issue.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/issue.rb @@ -20,7 +20,7 @@ class Issue - def self.to_hash(issue) + def self.to_hash(issue, rule_name=nil) hash = { :key => issue.key, :component => issue.componentKey, @@ -30,7 +30,7 @@ class Issue } hash[:resolution] = issue.resolution if issue.resolution hash[:severity] = issue.severity if issue.severity - hash[:message] = issue.message if issue.message + hash[:message] = issue.message ? issue.message : rule_name hash[:line] = issue.line.to_i if issue.line hash[:effortToFix] = issue.effortToFix.to_f if issue.effortToFix hash[:technicalDebt] = technical_debt_to_hash(issue.technicalDebt) if issue.technicalDebt |