When procedure is reset delete only draft revision dossiers
This commit is contained in:
parent
bced5fbd51
commit
f31096b33e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue