mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 13:44:23 +08:00
Fix team assignments for new protocol drafts [SCI-12199]
This commit is contained in:
parent
01867fff19
commit
18ad2a8a93
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue