]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2073 FIX Display multiple 'Treemap' filter widgets
authorDavid Gageot <david@gageot.net>
Tue, 5 Jun 2012 10:19:30 +0000 (12:19 +0200)
committerDavid Gageot <david@gageot.net>
Wed, 6 Jun 2012 09:35:12 +0000 (11:35 +0200)
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)

sonar-server/src/main/webapp/WEB-INF/app/views/filters/_treemap.html.erb

index 9b82a610108d509dec526416cc7d96beff7adaa0..3918504ae8b11880585429e5bac80e862c75b2f1 100644 (file)
@@ -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,