From ba76d83339cfb9927c5f19875fb14aac6cea4a52 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Tue, 5 Jun 2012 12:19:30 +0200 Subject: [PATCH] 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) --- .../src/main/webapp/WEB-INF/app/views/filters/_treemap.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.39.5