mirror of
https://github.com/redmine/redmine.git
synced 2025-11-16 10:16:03 +01:00
code layout clean up app/models/workflow_transition.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19286 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -52,7 +52,12 @@ class WorkflowTransition < WorkflowRule
|
|||||||
|
|
||||||
if transition == "1" || transition == true
|
if transition == "1" || transition == true
|
||||||
unless w
|
unless w
|
||||||
w = WorkflowTransition.new(:old_status_id => old_status_id, :new_status_id => new_status_id, :tracker_id => tracker.id, :role_id => role.id)
|
w = WorkflowTransition.new(
|
||||||
|
:old_status_id => old_status_id,
|
||||||
|
:new_status_id => new_status_id,
|
||||||
|
:tracker_id => tracker.id,
|
||||||
|
:role_id => role.id
|
||||||
|
)
|
||||||
records << w
|
records << w
|
||||||
end
|
end
|
||||||
w.author = true if rule == "author"
|
w.author = true if rule == "author"
|
||||||
|
|||||||
Reference in New Issue
Block a user