Enable test revisions
This commit is contained in:
parent
f288528e07
commit
280e54b59d
12 changed files with 36 additions and 44 deletions
|
@ -307,9 +307,7 @@ class Procedure < ApplicationRecord
|
|||
end
|
||||
|
||||
def reset!
|
||||
if locked?
|
||||
raise "Can not reset a locked procedure."
|
||||
else
|
||||
if !locked? || draft_changed?
|
||||
draft_revision.dossiers.destroy_all
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue