Merge pull request #8751 from artoscinote/ma_SCI_12199

Fix team assignments for new protocol drafts [SCI-12199]
This commit is contained in:
Martin Artnik 2025-08-06 15:42:45 +02:00 committed by GitHub
commit c33258d20e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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