Merge branch 'staging'

This commit is contained in:
Xavier J 2017-01-10 15:28:01 +01:00
commit 7bf02af586

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?