Merge pull request #8327 from tchak/feat-rebase-after-repasser-en-instruction
feat(dossier): rebase after repasser en instruction
This commit is contained in:
commit
e3bf0d8fec
2 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -902,6 +902,7 @@ class Dossier < ApplicationRecord
|
|||
attestation&.destroy
|
||||
|
||||
save!
|
||||
rebase_later
|
||||
if !disable_notification
|
||||
DossierMailer.notify_revert_to_instruction(self).deliver_later
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue