Revert "if is not only in draft, its gonna be cloned anyway"
This reverts commit 71e9240a7d
.
This commit is contained in:
parent
74653631c3
commit
a6cf311f56
1 changed files with 3 additions and 0 deletions
|
@ -74,6 +74,9 @@ class ProcedureRevision < ApplicationRecord
|
|||
|
||||
# Only called by by controller update
|
||||
def find_or_clone_type_de_champ(stable_id)
|
||||
# Ensure that if this is a child, it's parent is cloned to the new revision
|
||||
clone_parent_to_draft_revision(stable_id)
|
||||
|
||||
coordinate, tdc = coordinate_and_tdc(stable_id)
|
||||
|
||||
if tdc.only_present_on_draft?
|
||||
|
|
Loading…
Reference in a new issue