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:
Paul Chavard 2018-06-28 15:15:53 +02:00 committed by GitHub
commit c06fa62ce4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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