aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb
index 935a7231d33..81df96f4895 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb
@@ -434,9 +434,10 @@ module ApplicationHelper
# === Examples
# trend_icon('ncloc')
# trend_icon(measure('ncloc'))
- # trend_icon('ncloc', :big => true, :empty => true)
+ # trend_icon('ncloc', :empty => true)
#
def trend_icon(metric_or_measure, options={})
+ m=nil
if metric_or_measure.is_a? ProjectMeasure
m = metric_or_measure
elsif @snapshot