From: Jean-Philippe Lang Date: Sat, 27 May 2017 09:13:35 +0000 (+0000) Subject: Statuses of subprojects should be showed too (#5385). X-Git-Tag: 3.4.0~112 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d6b0fca9020703f6fcdff884a99833b121bcbb94;p=redmine.git Statuses of subprojects should be showed too (#5385). git-svn-id: http://svn.redmine.org/redmine/trunk@16576 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/project.rb b/app/models/project.rb index 37a610980..dc5309b21 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -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.