fix(dossier): when rebase creates a champ always push in to champs
This commit is contained in:
parent
02755f7372
commit
6363206c44
1 changed files with 1 additions and 5 deletions
|
@ -143,11 +143,7 @@ module DossierRebaseConcern
|
||||||
champ = target_coordinate
|
champ = target_coordinate
|
||||||
.type_de_champ
|
.type_de_champ
|
||||||
.build_champ(params)
|
.build_champ(params)
|
||||||
if parent.is_a?(Dossier)
|
parent.champs << champ
|
||||||
parent.champs_public << champ
|
|
||||||
else
|
|
||||||
parent.champs << champ
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete_champs_for_revision(stable_id)
|
def delete_champs_for_revision(stable_id)
|
||||||
|
|
Loading…
Reference in a new issue