mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-04 14:49:41 +00: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:
parent
0bdd2454b2
commit
13ce734fc8
@ -52,7 +52,12 @@ class WorkflowTransition < WorkflowRule
|
||||
|
||||
if transition == "1" || transition == true
|
||||
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
|
||||
end
|
||||
w.author = true if rule == "author"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user