Feature #43957 » 0002-Reduce-queries-in-WorkflowTransition.replace_transit.patch
| app/models/workflow_transition.rb | ||
|---|---|---|
|
new(
|
||
|
:old_status_id => old_status_id,
|
||
|
:new_status_id => new_status_id,
|
||
|
:tracker_id => tracker.id,
|
||
|
:role_id => role.id
|
||
|
:tracker => tracker,
|
||
|
:role => role
|
||
|
)
|
||
|
records_by_status_and_scope[key] ||= []
|
||
|
records_by_status_and_scope[key] << w
|
||