When procedure is reset delete only draft revision dossiers

This commit is contained in:
Paul Chavard 2021-03-03 18:40:53 +01:00
parent bced5fbd51
commit f31096b33e

View file

@ -266,7 +266,7 @@ class Procedure < ApplicationRecord
if locked?
raise "Can not reset a locked procedure."
else
groupe_instructeurs.each { |gi| gi.dossiers.destroy_all }
draft_revision.dossiers.destroy_all
end
end