diff --git a/app/controllers/users/commencer_controller.rb b/app/controllers/users/commencer_controller.rb index 598624b9906..74e717b6910 100644 --- a/app/controllers/users/commencer_controller.rb +++ b/app/controllers/users/commencer_controller.rb @@ -106,11 +106,11 @@ def prefill_params_present? end def retrieve_procedure - Procedure.publiees.or(Procedure.brouillons).find_by(path: params[:path]) + Procedure.publiees.or(Procedure.brouillons).find_by(path: params[:path]&.downcase) end def retrieve_procedure_with_closed - Procedure.publiees.or(Procedure.brouillons).or(Procedure.closes).order(published_at: :desc).find_by(path: params[:path]) + Procedure.publiees.or(Procedure.brouillons).or(Procedure.closes).order(published_at: :desc).find_by(path: params[:path]&.downcase) end def build_prefilled_dossier