Merge pull request #10182 from demarches-simplifiees/remove-closing-attributes-from-cloned-procedures

Correctif : supprime les closing attributes lors du clonage d'une démarche
This commit is contained in:
Eric Leroy-Terquem 2024-03-25 13:23:27 +00:00 committed by GitHub
commit b1e8c2ab49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -544,6 +544,10 @@ class Procedure < ApplicationRecord
procedure.canonical_procedure = nil
procedure.replaced_by_procedure = nil
procedure.service = nil
procedure.closing_reason = nil
procedure.closing_details = nil
procedure.closing_notification_brouillon = false
procedure.closing_notification_en_cours = false
if !procedure.valid?
procedure.errors.attribute_names.each do |attribute|