Project

General

Profile

Feature #43957 » 0002-Reduce-queries-in-WorkflowTransition.replace_transit.patch

Go MAEDA, 2026-04-14 11:26

View differences:

app/models/workflow_transition.rb
57 57
                          new(
58 58
                            :old_status_id => old_status_id,
59 59
                            :new_status_id => new_status_id,
60
                            :tracker_id => tracker.id,
61
                            :role_id => role.id
60
                            :tracker => tracker,
61
                            :role => role
62 62
                          )
63 63
                    records_by_status_and_scope[key] ||= []
64 64
                    records_by_status_and_scope[key] << w
(2-2/2)