mirror of
https://github.com/redmine/redmine.git
synced 2025-11-16 18:26:02 +01:00
avoid comparing a variable with multiple items at WorkflowTransition#replace_transitions
git-svn-id: http://svn.redmine.org/redmine/trunk@19846 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -50,7 +50,7 @@ class WorkflowTransition < WorkflowRule
|
|||||||
end
|
end
|
||||||
w = w.first
|
w = w.first
|
||||||
|
|
||||||
if transition == "1" || transition == true
|
if ["1", true].include?(transition)
|
||||||
unless w
|
unless w
|
||||||
w = WorkflowTransition.
|
w = WorkflowTransition.
|
||||||
new(
|
new(
|
||||||
|
|||||||
Reference in New Issue
Block a user