diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-05-25 20:18:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-05-25 20:18:55 +0000 |
commit | 59cbc68dde9cda2178e9194746f60a2161d973bf (patch) | |
tree | 55e321ea1efceaa744546b0571ce7d9f93c70487 /app/controllers/projects_controller.rb | |
parent | 221585c7b5708659e9059b6119846948b07570bb (diff) | |
download | redmine-59cbc68dde9cda2178e9194746f60a2161d973bf.tar.gz redmine-59cbc68dde9cda2178e9194746f60a2161d973bf.zip |
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9714 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 5dcb934fe..c89167aa3 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -65,14 +65,14 @@ class ProjectsController < ApplicationController def new @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position") - @trackers = Tracker.all + @trackers = Tracker.sorted.all @project = Project.new @project.safe_attributes = params[:project] end def create @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position") - @trackers = Tracker.all + @trackers = Tracker.sorted.all @project = Project.new @project.safe_attributes = params[:project] @@ -105,7 +105,7 @@ class ProjectsController < ApplicationController def copy @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position") - @trackers = Tracker.all + @trackers = Tracker.sorted.all @root_projects = Project.find(:all, :conditions => "parent_id IS NULL AND status = #{Project::STATUS_ACTIVE}", :order => 'name') @@ -175,7 +175,7 @@ class ProjectsController < ApplicationController @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position") @issue_category ||= IssueCategory.new @member ||= @project.members.new - @trackers = Tracker.all + @trackers = Tracker.sorted.all @wiki ||= @project.wiki end |