mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
Merge pull request #8751 from artoscinote/ma_SCI_12199
Fix team assignments for new protocol drafts [SCI-12199]
This commit is contained in:
commit
c33258d20e
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