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:
commit
b1e8c2ab49
1 changed files with 4 additions and 0 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue