diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2013-12-05 15:06:30 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2013-12-05 15:07:25 +0100 |
commit | 0fd49b454c750a0cbb1d5160ba4303d92927b4ba (patch) | |
tree | 4d4ea7ca288bd2acf38300dd489203ebaaa595b1 | |
parent | 3ed0f103bc8b1e9de80fcc78464edb523191342d (diff) | |
download | sonarqube-0fd49b454c750a0cbb1d5160ba4303d92927b4ba.tar.gz sonarqube-0fd49b454c750a0cbb1d5160ba4303d92927b4ba.zip |
SONAR-4910 Fix default severity option for hotspot widget
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb index d1c59706d12..40a6a5f3b75 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb @@ -14,10 +14,10 @@ measures_by_severity[key] = sorted_measures all_measures.concat(sorted_measures) end - measures_by_severity['']=all_measures.sort { |a, b| b.send(value_column) <=> a.send(value_column) }[0...limit] + measures_by_severity['all']=all_measures.sort { |a, b| b.send(value_column) <=> a.send(value_column) }[0...limit] default_severity = widget_properties['defaultSeverity'] - default_severity = '' unless Severity::KEYS.include?(default_severity) + default_severity = 'all' unless Severity::KEYS.include?(default_severity) %> <script type="text/javascript"> @@ -40,7 +40,7 @@ <%= message(dashboard_configuration.selected_period? ? 'widget.hotspot_most_violated_rules.name_when_period' : 'widget.hotspot_most_violated_rules.name') %> <select class="small withIcons" style="margin-left: 20px" onchange="showMostViolatedRules<%= widget.id -%>(this.value);" id="select-severity_<%= widget.id -%>"> - <option value="" <%= 'selected' if default_severity=='' -%>><%= message('widget.hotspot_most_violated_rules.any_severity') -%></option> + <option value="all" <%= 'selected' if default_severity=='all' -%>><%= message('widget.hotspot_most_violated_rules.any_severity') -%></option> <% Severity::KEYS.each do |key| %> <option class="sev_<%= key -%>" value="<%= key -%>" <%= 'selected' if default_severity==key -%>><%= message("severity.#{key}") -%></option> <% end %> |