modify controller
This commit is contained in:
parent
6037c22a75
commit
23677956f3
1 changed files with 3 additions and 0 deletions
|
@ -134,6 +134,9 @@ module Instructeurs
|
||||||
|
|
||||||
def repasser_en_instruction
|
def repasser_en_instruction
|
||||||
begin
|
begin
|
||||||
|
if dossier.hidden_by_user_at.present?
|
||||||
|
dossier.update!(hidden_by_user_at: nil)
|
||||||
|
end
|
||||||
flash.notice = "Le dossier #{dossier.id} a été repassé en instruction."
|
flash.notice = "Le dossier #{dossier.id} a été repassé en instruction."
|
||||||
dossier.repasser_en_instruction!(current_instructeur)
|
dossier.repasser_en_instruction!(current_instructeur)
|
||||||
rescue AASM::InvalidTransition => e
|
rescue AASM::InvalidTransition => e
|
||||||
|
|
Loading…
Reference in a new issue