From: David Gageot Date: Tue, 5 Jun 2012 10:19:30 +0000 (+0200) Subject: SONAR-2073 FIX Display multiple 'Treemap' filter widgets X-Git-Tag: 3.1~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ba76d83339cfb9927c5f19875fb14aac6cea4a52;p=sonarqube.git SONAR-2073 FIX Display multiple 'Treemap' filter widgets When there were two 'Treemap' filter widgets on the same dashboard, only one was displayed. It's because they had the same id. (cherry picked from commit a63b033c8444072bdcc3725ebbe41c5869cc1c1a) --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_treemap.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_treemap.html.erb index 9b82a610108..3918504ae8b 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_treemap.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_treemap.html.erb @@ -4,7 +4,7 @@ <% metrics=treemap_metrics(@filter) %> <%= render :partial => 'treemap/treemap_container', :locals => { - :treemap_id => @filter.id, + :treemap_id => widget.id, :size_metric => metrics[0], :color_metric => metrics[1], :height_in_percents => 50.0,