Merge pull request #10507 from demarches-simplifiees/fix-clone-monavis

ETQ admin: je souhaite que le lien JDMA soit réinitialisé lors du clonage d'une procédure
This commit is contained in:
mfo 2024-06-11 08:23:03 +00:00 committed by GitHub
commit 4d6b8d9536
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -559,6 +559,7 @@ class Procedure < ApplicationRecord
procedure.closing_notification_brouillon = false
procedure.closing_notification_en_cours = false
procedure.template = false
procedure.monavis_embed = nil
if !procedure.valid?
procedure.errors.attribute_names.each do |attribute|