aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-10-04 10:37:59 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-10-04 10:37:59 +0200
commitbd6fc6baa784dffde1efa286144dbf6b0a883bf9 (patch)
tree734ebf7d6a48732d5124d714130fc17fa0e6d09e /sonar-server
parent6602c6c6fa9fdba87b6804ccddc3de296240588e (diff)
downloadsonarqube-bd6fc6baa784dffde1efa286144dbf6b0a883bf9.tar.gz
sonarqube-bd6fc6baa784dffde1efa286144dbf6b0a883bf9.zip
SONAR-2855 Metrics are not sorted in the configuration panel of widgets
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/helpers/widget_properties_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/widget_properties_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/widget_properties_helper.rb
index c5c358ee8b8..dfe9f84c012 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/widget_properties_helper.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/widget_properties_helper.rb
@@ -31,7 +31,7 @@ module WidgetPropertiesHelper
check_box_tag definition.key(), "true", val=='true'
elsif definition.type.name()==WidgetProperty::TYPE_METRIC
- select_tag definition.key(), options_grouped_by_domain(Metric.all.select{|m| m.display?}, val, :include_empty => true)
+ select_tag definition.key(), options_grouped_by_domain(Metric.all.select{|m| m.display?}.sort_by{|m| m.short_name}, val, :include_empty => true)
elsif definition.type.name()==WidgetProperty::TYPE_STRING
text_field_tag definition.key(), val, :size => 10