Merge branch 'develop' into staging
This commit is contained in:
commit
56c15850b9
1 changed files with 8 additions and 1 deletions
|
@ -27,7 +27,14 @@ class Users::DossiersController < UsersController
|
||||||
|
|
||||||
def commencer
|
def commencer
|
||||||
unless params[:procedure_path].nil?
|
unless params[:procedure_path].nil?
|
||||||
procedure = ProcedurePath.where(path: params[:procedure_path]).last.procedure
|
procedure_path = ProcedurePath.where(path: params[:procedure_path]).last
|
||||||
|
|
||||||
|
if procedure_path.nil?
|
||||||
|
flash.alert = "Procédure inconnue"
|
||||||
|
return redirect_to root_path
|
||||||
|
else
|
||||||
|
procedure = procedure_path.procedure
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if procedure.archived?
|
if procedure.archived?
|
||||||
|
|
Loading…
Reference in a new issue