From 36812793d439c98e1130b1e84b6d0243a7035e7b Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 18 Sep 2018 14:31:29 +0200 Subject: [PATCH] Do not clone procedure path --- app/models/procedure.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/procedure.rb b/app/models/procedure.rb index 20ca03dac..34bb4f150 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -216,6 +216,7 @@ class Procedure < ApplicationRecord types_de_champ: :drop_down_list, types_de_champ_private: :drop_down_list }) + procedure.path = nil procedure.aasm_state = :brouillon procedure.test_started_at = nil procedure.archived_at = nil