]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3825 do not allow to unselect color metric in treemap
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 13 Dec 2012 09:18:32 +0000 (10:18 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 13 Dec 2012 09:18:32 +0000 (10:18 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/measures/_display_treemap.html.erb

index 9e084aceccbeac1305d0bff78dfdf5ea7384083b..1e9270036bdf525e45a310d7092e102d545b472f 100644 (file)
@@ -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>