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,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)
|
||||||
|
|
|
@ -902,6 +902,7 @@ class Dossier < ApplicationRecord
|
||||||
attestation&.destroy
|
attestation&.destroy
|
||||||
|
|
||||||
save!
|
save!
|
||||||
|
rebase_later
|
||||||
if !disable_notification
|
if !disable_notification
|
||||||
DossierMailer.notify_revert_to_instruction(self).deliver_later
|
DossierMailer.notify_revert_to_instruction(self).deliver_later
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue