From 7e41974591a5db8e9cb0585233e7b5130b9dade4 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Sun, 17 Jun 2012 22:27:21 +0200 Subject: [PATCH] SONAR-3584 Unable to edit "Treemap" filter (cherry picked from commit 1a7062226cccbc650e92b3341f5124cc763b44a6) --- .../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 3918504ae8b..ee66daf78c0 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 => widget.id, + :treemap_id => (defined? widget) ? widget.id : @filter.id, :size_metric => metrics[0], :color_metric => metrics[1], :height_in_percents => 50.0, -- 2.39.5