avoid reset
This commit is contained in:
parent
6148f24387
commit
26fa5de790
1 changed files with 1 additions and 0 deletions
|
@ -403,6 +403,7 @@ class Procedure < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def reset!
|
def reset!
|
||||||
|
return false
|
||||||
if !locked? || draft_changed?
|
if !locked? || draft_changed?
|
||||||
draft_revision.dossiers.destroy_all
|
draft_revision.dossiers.destroy_all
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue