summaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r--app/controllers/admin_controller.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index e8cccca85..a7a1b9a14 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -32,10 +32,9 @@ class AdminController < ApplicationController
def projects
@status = params[:status] || 1
- scope = Project.status(@status)
+ scope = Project.status(@status).order('lft')
scope = scope.like(params[:name]) if params[:name].present?
-
- @projects = scope.all(:order => 'lft')
+ @projects = scope.all
render :action => "projects", :layout => false if request.xhr?
end