diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-06-14 18:59:48 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-06-14 18:59:48 +0200 |
commit | e622e7050adb164c304faa2677348bd0b1d0f19b (patch) | |
tree | fb74b5d58dc5bfd5de93974b9cef0323c12932e8 /sonar-server | |
parent | 9127177a746abd6451809118b0bacfc890ccdd53 (diff) | |
download | sonarqube-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.rb | 4 |
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 |