Undo discard dossiers and demarches from manager
This commit is contained in:
parent
876e05aed3
commit
da52ec30bd
11 changed files with 109 additions and 17 deletions
|
@ -523,6 +523,14 @@ class Procedure < ApplicationRecord
|
|||
discard!
|
||||
end
|
||||
|
||||
def restore(author)
|
||||
if discarded? && undiscard
|
||||
dossiers.with_discarded.discarded.find_each do |dossier|
|
||||
dossier.restore(author, true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def flipper_id
|
||||
"Procedure;#{id}"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue