From: simonbrandhof Date: Sun, 26 Dec 2010 17:20:41 +0000 (+0000) Subject: fix rendering of string measures X-Git-Tag: 2.6~223 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ddae12dc6bfc325801a921f80026e4d9305239ae;p=sonarqube.git fix rendering of string 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 4f400045071..d4f3efbbc64 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 value.nil? + if text_value.nil? || value.nil? return nil end if metric.nil?