fix(cloned procedures): reset closing attributes
This commit is contained in:
parent
b8a9a594ba
commit
a726d34404
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