aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-06-14 18:59:48 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-06-14 18:59:48 +0200
commite622e7050adb164c304faa2677348bd0b1d0f19b (patch)
treefb74b5d58dc5bfd5de93974b9cef0323c12932e8 /sonar-server
parent9127177a746abd6451809118b0bacfc890ccdd53 (diff)
downloadsonarqube-e622e7050adb164c304faa2677348bd0b1d0f19b.tar.gz
sonarqube-e622e7050adb164c304faa2677348bd0b1d0f19b.zip
Fix treemap
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/helpers/metrics_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/metrics_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/metrics_helper.rb
index 2be31148e2a..f94dddf81ee 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/metrics_helper.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/metrics_helper.rb
@@ -26,7 +26,7 @@ module MetricsHelper
def options_grouped_by_domain(metrics, selected_key='')
metrics_per_domain={}
metrics.each do |metric|
- domain=metric.domain(true) || ''
+ domain=metric.domain || ''
metrics_per_domain[domain]||=[]
metrics_per_domain[domain]<<metric
end
@@ -36,7 +36,7 @@ module MetricsHelper
html += "<optgroup label=\"#{html_escape(domain)}\">"
metrics_per_domain[domain].each do |m|
selected_attr = " selected='selected'" if (m.key==selected_key || m.id==selected_key)
- html += "<option value='#{html_escape(m.key)}'#{selected_attr}>#{html_escape(m.short_name(true))}</option>"
+ html += "<option value='#{html_escape(m.key)}'#{selected_attr}>#{html_escape(m.short_name)}</option>"
end
html += '</optgroup>'
end