mirror of
https://github.com/redmine/redmine.git
synced 2026-05-06 10:26:11 +02:00
Replaces find(:first/:all) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10931 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user