aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-12-13 10:18:32 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-12-13 10:18:32 +0100
commit4c53a248ccc61ff97a3a890a4c6332c2cb782c62 (patch)
treef8d675f51feee9619c6fb3e2163f6c5c600f68f4 /sonar-server
parent0b8826dd377a8f19980cda5aad007846bd758f2a (diff)
downloadsonarqube-4c53a248ccc61ff97a3a890a4c6332c2cb782c62.tar.gz
sonarqube-4c53a248ccc61ff97a3a890a4c6332c2cb782c62.zip
SONAR-3825 do not allow to unselect color metric in treemap
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/measures/_display_treemap.html.erb3
1 files changed, 2 insertions, 1 deletions
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 @@
<br/>
<%= 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 -%>
</td>
<td valign="top" class="thin nowrap">
@@ -38,7 +39,7 @@
<br/>
<%= 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) -%>
<button id="update-treemap"><%= message 'refresh' -%></button>