From: Jean-Philippe Lang Date: Sun, 15 Jul 2012 15:34:44 +0000 (+0000) Subject: Display all fields if tracker statuses are not yet set. X-Git-Tag: 2.1.0~326 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4c8c5e9187c89f4c52a249109e0d960edc00c9b7;p=redmine.git 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 --- 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