mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-04-02 18:31:30 +08:00
Add description to cloned protocol template from protocol [SCI-8053] (#5063)
This commit is contained in:
parent
72cf844c3e
commit
ed90c912f6
1 changed files with 1 additions and 0 deletions
|
@ -573,6 +573,7 @@ class Protocol < ApplicationRecord
|
|||
clone.team = team
|
||||
clone.protocol_type = :in_repository_draft
|
||||
clone.added_by = current_user
|
||||
clone.description = description
|
||||
# Don't proceed further if clone is invalid
|
||||
return clone if clone.invalid?
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue