mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46: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
|
||||
w = w.first
|
||||
|
||||
if transition == "1" || transition == true
|
||||
if ["1", true].include?(transition)
|
||||
unless w
|
||||
w = WorkflowTransition.
|
||||
new(
|
||||
|
||||
Reference in New Issue
Block a user