From 4c8c5e9187c89f4c52a249109e0d960edc00c9b7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 15 Jul 2012 15:34:44 +0000 Subject: [PATCH] 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 --- app/controllers/workflows_controller.rb | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5