]> source.dussan.org Git - redmine.git/commitdiff
Statuses of subprojects should be showed too (#5385).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 27 May 2017 09:13:35 +0000 (09:13 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 27 May 2017 09:13:35 +0000 (09:13 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16576 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/project.rb

index 37a610980f27d5c360bd3fe7c22a3167797bcaf0..dc5309b21754617687bea2009ef8e91a3dcefc7a 100644 (file)
@@ -455,7 +455,7 @@ class Project < ActiveRecord::Base
 
   def rolled_up_statuses
     issue_status_ids = WorkflowTransition.
-      where(:tracker_id => trackers).
+      where(:tracker_id => rolled_up_trackers.map(&:id)).
       distinct.
       pluck(:old_status_id, :new_status_id).
       flatten.