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

index 4f400045071b5a479e4ad91488a941da47cd2985..d4f3efbbc642646e4fef16b3b3c32878bd3a870c 100644 (file)
@@ -62,7 +62,7 @@ class ProjectMeasure < ActiveRecord::Base
   end
 
   def formatted_value
-    if value.nil?
+    if text_value.nil? || value.nil?
       return nil
     end
     if metric.nil?