From: simonbrandhof Date: Sun, 26 Dec 2010 17:51:58 +0000 (+0000) Subject: fix display of measures X-Git-Tag: 2.6~222 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6a45c30d771165c6febe961ff0a1c926b42b1fef;p=sonarqube.git fix display of measures --- 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?