summaryrefslogtreecommitdiffstats
path: root/app/models/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 9f9656976..08fdefabd 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -492,6 +492,7 @@ class Project < ActiveRecord::Base
def rolled_up_statuses
issue_status_ids = WorkflowTransition.
where(:tracker_id => rolled_up_trackers.map(&:id)).
+ where('old_status_id <> new_status_id').
distinct.
pluck(:old_status_id, :new_status_id).
flatten.