diff options
author | David Gageot <david@gageot.net> | 2012-06-17 22:27:21 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-06-18 09:25:57 +0200 |
commit | 7e41974591a5db8e9cb0585233e7b5130b9dade4 (patch) | |
tree | 6d9b9e418b96ae78626bcb4396eacea5d6717446 | |
parent | bc2e2c0a320efd2cbb9aa8d96b932b9e2b89a84c (diff) | |
download | sonarqube-7e41974591a5db8e9cb0585233e7b5130b9dade4.tar.gz sonarqube-7e41974591a5db8e9cb0585233e7b5130b9dade4.zip |
SONAR-3584 Unable to edit "Treemap" filter
(cherry picked from commit 1a7062226cccbc650e92b3341f5124cc763b44a6)
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/filters/_treemap.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
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, |