diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-15 15:35:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-15 15:35:02 +0000 |
commit | 2f55caa1ba17e2fa3d5dd39b841ab98fad6ae5fd (patch) | |
tree | d498842a678b2ff8aceac952f382eaeb34f523fc | |
parent | 4c8c5e9187c89f4c52a249109e0d960edc00c9b7 (diff) | |
download | redmine-2f55caa1ba17e2fa3d5dd39b841ab98fad6ae5fd.tar.gz redmine-2f55caa1ba17e2fa3d5dd39b841ab98fad6ae5fd.zip |
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9991 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/workflows_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/workflows_controller.rb b/app/controllers/workflows_controller.rb index 0e440a4d8..c95583fe9 100644 --- a/app/controllers/workflows_controller.rb +++ b/app/controllers/workflows_controller.rb @@ -49,7 +49,7 @@ class WorkflowsController < ApplicationController if @tracker && @used_statuses_only && @tracker.issue_statuses.any? @statuses = @tracker.issue_statuses end - @statuses ||= IssueStatus.find(:all, :order => 'position') + @statuses ||= IssueStatus.sorted.all if @tracker && @role && @statuses.any? workflows = WorkflowTransition.all(:conditions => {:role_id => @role.id, :tracker_id => @tracker.id}) |