diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-08-15 16:21:31 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-08-15 16:21:31 +0200 |
commit | cf9a51847405a117a66392c8543e38921cf372b0 (patch) | |
tree | a063bacdc483240c166002656423eb3df3bfe4f1 /sonar-server | |
parent | 4d40b9f53847a028985fd018c90fbdde8e317762 (diff) | |
download | sonarqube-cf9a51847405a117a66392c8543e38921cf372b0.tar.gz sonarqube-cf9a51847405a117a66392c8543e38921cf372b0.zip |
SONAR-2556 Adding new widgets to a dashboard re-organizes the first column
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb index 40981b63a1c..f7245aefa82 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb @@ -95,7 +95,7 @@ class DashboardController < ApplicationController if dashboard.editable_by?(current_user) definition=java_facade.getWidget(params[:widget]) if definition - first_column_widgets=dashboard.widgets.select{|w| w.column_index==1} + first_column_widgets=dashboard.widgets.select{|w| w.column_index==1}.sort_by{|w| w.row_index} new_widget=dashboard.widgets.create(:widget_key => definition.getId(), :name => definition.getTitle(), :column_index => 1, |