summaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-12-26 17:51:58 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-12-26 17:51:58 +0000
commit6a45c30d771165c6febe961ff0a1c926b42b1fef (patch)
treec58051e14f3c98dcf4a52fbe95c4799d21805dbb /sonar-server
parentddae12dc6bfc325801a921f80026e4d9305239ae (diff)
downloadsonarqube-6a45c30d771165c6febe961ff0a1c926b42b1fef.tar.gz
sonarqube-6a45c30d771165c6febe961ff0a1c926b42b1fef.zip
fix display of measures
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/models/project_measure.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/project_measure.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/project_measure.rb
index d4f3efbbc64..071b75aa54b 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/models/project_measure.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/models/project_measure.rb
@@ -62,7 +62,7 @@ class ProjectMeasure < ActiveRecord::Base
end
def formatted_value
- if text_value.nil? || value.nil?
+ if text_value.nil? && value.nil?
return nil
end
if metric.nil?