]> source.dussan.org Git - sonarqube.git/commitdiff
fix display of measures
authorsimonbrandhof <simon.brandhof@gmail.com>
Sun, 26 Dec 2010 17:51:58 +0000 (17:51 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Sun, 26 Dec 2010 17:51:58 +0000 (17:51 +0000)
sonar-server/src/main/webapp/WEB-INF/app/models/project_measure.rb

index d4f3efbbc642646e4fef16b3b3c32878bd3a870c..071b75aa54b9d74c5ca78dcf8b779d1eb431d833 100644 (file)
@@ -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?