From 4c53a248ccc61ff97a3a890a4c6332c2cb782c62 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 13 Dec 2012 10:18:32 +0100 Subject: [PATCH] SONAR-3825 do not allow to unselect color metric in treemap --- .../WEB-INF/app/views/measures/_display_treemap.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_display_treemap.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_display_treemap.html.erb index 9e084aceccb..1e9270036bd 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_display_treemap.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_display_treemap.html.erb @@ -26,6 +26,7 @@
<%= metric_select_tag 'tmSize', Metric.all.select { |m| m.treemap_size? }, :html_id => 'select-tm-size', + :allow_empty => false, :selected_key => filter.display.size_metric.key -%> @@ -38,7 +39,7 @@
<%= metric_select_tag 'tmColor', Metric.all.select { |m| m.treemap_color? }, :html_id => 'select-tm-color', - :allow_empty => true, + :allow_empty => false, :selected_key => (filter.display.color_metric ? filter.display.color_metric.key : nil) -%> -- 2.39.5