From f6a6d8f4577f5f2ac564a0d8bbd73ab4c6bdaffe Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 19 Sep 2018 17:12:06 +0200 Subject: [PATCH] Fix destroy dossiers on procedure reset --- app/models/procedure.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/procedure.rb b/app/models/procedure.rb index 2f2c10855..a51759245 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -114,7 +114,7 @@ class Procedure < ApplicationRecord if locked? raise "Can not reset a locked procedure." else - dossiers.delete_all + dossiers.destroy_all end end