From b2b9f8b5aeb7315ea58046d583ab89a59d9608d4 Mon Sep 17 00:00:00 2001 From: Christian Lautier <15379878+maatinito@users.noreply.github.com> Date: Fri, 21 Jun 2024 09:11:56 -1000 Subject: [PATCH] Ignore case in commencer paths --- app/controllers/users/commencer_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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