Merge branch 'develop' into staging

This commit is contained in:
Xavier J 2017-01-10 15:27:48 +01:00
commit 56c15850b9

View file

@ -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?