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
This commit is contained in:
Jean-Philippe Lang 2012-07-15 15:34:44 +00:00
parent 7946f4a696
commit 4c8c5e9187
1 changed files with 3 additions and 0 deletions

View File

@ -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