mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 03:15:57 +01:00
Ignore statuses if workflow only defines identity transition (#37636).
Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21818 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -161,6 +161,8 @@ class WorkflowsController < ApplicationController
|
||||
role_ids = Role.all.select(&:consider_workflow?).map(&:id)
|
||||
status_ids = WorkflowTransition.where(
|
||||
:tracker_id => @trackers.map(&:id), :role_id => role_ids
|
||||
).where(
|
||||
'old_status_id <> new_status_id'
|
||||
).distinct.pluck(:old_status_id, :new_status_id).flatten.uniq
|
||||
@statuses = IssueStatus.where(:id => status_ids).sorted.to_a.presence
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user