]> source.dussan.org Git - redmine.git/commitdiff
Display all fields if tracker statuses are not yet set.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Jul 2012 15:34:44 +0000 (15:34 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Jul 2012 15:34:44 +0000 (15:34 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9990 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/workflows_controller.rb

index 70932ebbcf76305d4a8e040a56d989f853cb7323..0e440a4d8063da40afb772c12829ac518bde740f 100644 (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