]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3328 Measure drilldown should not display zero variations
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 20 Mar 2012 22:56:29 +0000 (23:56 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 20 Mar 2012 22:56:29 +0000 (23:56 +0100)
sonar-server/src/main/webapp/WEB-INF/app/models/drilldown.rb

index ff4e589f77da9502e7fd90459e6e0e3666ca299a..245622a31ed4da7ce67f8d33f3f461cdb4a5e066 100644 (file)
@@ -105,7 +105,7 @@ class DrilldownColumn
       condition_values[:best_value]=@drilldown.metric.best_value
     end
 
-    if options[:exclude_zero_value]
+    if options[:exclude_zero_value] || options[:period]
       conditions += " AND project_measures.#{value_column}<>0"
     end