Skip to content

Commit

Permalink
Ignore case in commencer paths
Browse files Browse the repository at this point in the history
  • Loading branch information
maatinito committed Jun 21, 2024
1 parent 5085637 commit b2b9f8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/users/commencer_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2b9f8b

Please sign in to comment.