Merge pull request #2164 from tchak/do-not-clone-service-from-library
Do not copy service info when cloning from library
This commit is contained in:
commit
c06fa62ce4
1 changed files with 4 additions and 0 deletions
|
@ -222,6 +222,10 @@ class Procedure < ApplicationRecord
|
|||
procedure.cloned_from_library = from_library
|
||||
procedure.parent_procedure = self
|
||||
|
||||
if from_library
|
||||
procedure.service = nil
|
||||
end
|
||||
|
||||
procedure
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue