]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3584 Unable to edit "Treemap" filter
authorDavid Gageot <david@gageot.net>
Sun, 17 Jun 2012 20:27:21 +0000 (22:27 +0200)
committerDavid Gageot <david@gageot.net>
Sun, 17 Jun 2012 20:27:41 +0000 (22:27 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/filters/_treemap.html.erb

index 3918504ae8b11880585429e5bac80e862c75b2f1..ee66daf78c082f94576b2a76c97013dc154b77a6 100644 (file)
@@ -4,7 +4,7 @@
   <% metrics=treemap_metrics(@filter) %>
 
   <%= render :partial => 'treemap/treemap_container', :locals => {
-    :treemap_id => widget.id,
+    :treemap_id => (defined? widget) ? widget.id : @filter.id,
     :size_metric => metrics[0],
     :color_metric => metrics[1],
     :height_in_percents => 50.0,