fix(dossier): when rebase creates a champ always push in to champs

This commit is contained in:
Paul Chavard 2022-12-22 13:40:46 +01:00
parent 02755f7372
commit 6363206c44

View file

@ -143,11 +143,7 @@ module DossierRebaseConcern
champ = target_coordinate
.type_de_champ
.build_champ(params)
if parent.is_a?(Dossier)
parent.champs_public << champ
else
parent.champs << champ
end
parent.champs << champ
end
def delete_champs_for_revision(stable_id)