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:
parent
7946f4a696
commit
4c8c5e9187
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue