Revert "if is not only in draft, its gonna be cloned anyway"

This reverts commit 71e9240a7d.
This commit is contained in:
Paul Chavard 2022-05-18 22:53:39 +02:00
parent 74653631c3
commit a6cf311f56

View file

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