Fix team assignments for new protocol drafts [SCI-12199]

This commit is contained in:
Martin Artnik 2025-08-06 15:41:24 +02:00
parent 01867fff19
commit 18ad2a8a93

View file

@ -607,6 +607,11 @@ class Protocol < ApplicationRecord
parent_protocol.user_group_assignments.each do |parent_user_group_assignment|
parent_protocol.sync_child_protocol_assignment(parent_user_group_assignment, draft.id)
end
parent_protocol.team_assignments.each do |parent_team_assignment|
parent_protocol.sync_child_protocol_assignment(parent_team_assignment, draft.id)
end
draft
end