Merge pull request #8327 from tchak/feat-rebase-after-repasser-en-instruction

feat(dossier): rebase after repasser en instruction
This commit is contained in:
mfo 2022-12-22 13:50:43 +01:00 committed by GitHub
commit e3bf0d8fec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View file

@ -143,12 +143,8 @@ 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
end
def delete_champs_for_revision(stable_id)
Champ

View file

@ -902,6 +902,7 @@ class Dossier < ApplicationRecord
attestation&.destroy
save!
rebase_later
if !disable_notification
DossierMailer.notify_revert_to_instruction(self).deliver_later
end