diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-15 15:34:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-15 15:34:44 +0000 |
commit | 4c8c5e9187c89f4c52a249109e0d960edc00c9b7 (patch) | |
tree | 4892f474f1d21fb9813302a1ee6c93fb8382403f | |
parent | 7946f4a69668ac5ce1699b4c5940482497b929ed (diff) | |
download | redmine-4c8c5e9187c89f4c52a249109e0d960edc00c9b7.tar.gz redmine-4c8c5e9187c89f4c52a249109e0d960edc00c9b7.zip |
Display all fields if tracker statuses are not yet set.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9990 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/workflows_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/workflows_controller.rb b/app/controllers/workflows_controller.rb index 70932ebbc..0e440a4d8 100644 --- a/app/controllers/workflows_controller.rb +++ b/app/controllers/workflows_controller.rb @@ -72,6 +72,9 @@ class WorkflowsController < ApplicationController end @statuses = @tracker.issue_statuses + if @statuses.empty? + @statuses = IssueStatus.sorted.all + end @fields = (Tracker::CORE_FIELDS_ALL - @tracker.disabled_core_fields).map {|field| [field, l("field_"+field.sub(/_id$/, ''))]} @custom_fields = @tracker.custom_fields |