Merge pull request #4249 from aignatov-bio/ai-sci-6989-update-protocol-name-on-link

Update protocol name on save with link [SCI-6989]
This commit is contained in:
aignatov-bio 2022-07-15 10:08:41 +02:00 committed by GitHub
commit 2ec93cef43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -651,6 +651,7 @@ class Protocol < ApplicationRecord
# Link protocols if neccesary
if link_protocols
reload
self.name = clone.name
self.record_timestamps = false
self.added_by = current_user
self.parent = clone