]> source.dussan.org Git - sonarqube.git/commitdiff
Fix ordering of dashboard that a user created
authorDavid Gageot <david@gageot.net>
Thu, 24 May 2012 15:35:02 +0000 (17:35 +0200)
committerDavid Gageot <david@gageot.net>
Thu, 24 May 2012 15:35:02 +0000 (17:35 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboards_controller.rb

index 66c8ba7a15b1f92b17f07b09d47769e0b2e98599..3d2d0a4d6a02b9ad541225b9e6a6037da7d89910 100644 (file)
@@ -152,7 +152,7 @@ class DashboardsController < ApplicationController
   private
 
   def position(offset)
-    dashboard=Dashboard.find(:first, :conditions => ['shared=? and id=? and (user_id is null or user_id<>?)', true, params[:id].to_i, current_user.id])
+    dashboard=Dashboard.find(params[:id].to_i)
     if dashboard
       add_default_dashboards_if_first_user_dashboard(dashboard.global?)