fix(dossier): fix rebasing submitted dossiers private champs type changes

This commit is contained in:
Paul Chavard 2023-03-22 11:42:58 +01:00
parent 0eceed4126
commit ee1df3f05f
2 changed files with 15 additions and 4 deletions

View file

@ -71,9 +71,7 @@ module DossierRebaseConcern
changes_by_op[:remove].each { champs_by_stable_id[_1.stable_id].destroy_all }
# update champ
if brouillon?
changes_by_op[:update].each { apply(_1, champs_by_stable_id[_1.stable_id]) }
end
changes_by_op[:update].each { apply(_1, champs_by_stable_id[_1.stable_id]) }
# due to repetition tdc clone on update or erase
# we must reassign tdc to the latest version