summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/workflow_transition.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/models/workflow_transition.rb b/app/models/workflow_transition.rb
index fea8179d0..5c3051690 100644
--- a/app/models/workflow_transition.rb
+++ b/app/models/workflow_transition.rb
@@ -52,12 +52,13 @@ 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"