Skip to content

Commit

Permalink
reuse constant again again
Browse files Browse the repository at this point in the history
  • Loading branch information
victormours committed Mar 4, 2025
1 parent c18d5bf commit c6212eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/controllers/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ def redirect_to_organisation_search(organisation)

def search_params
params.permit(
:latitude, :longitude, :address, :city_code, :departement, :street_ban_id,
:service_id, :lieu_id, :date, :motif_name_with_location_type, :motif_category_short_name,
:motif_id, :public_link_organisation_id, :user_selected_organisation_id, :prescripteur,
*WebSearchContext::ADDRESS_SELECTION_PARAMS,
*WebSearchContext::USER_CHOICE_PARAMS,
:motif_category_short_name, :date, :public_link_organisation_id, :prescripteur,
organisation_ids: [], referent_ids: [], external_organisation_ids: []
).to_h.deep_symbolize_keys
end
Expand Down
6 changes: 3 additions & 3 deletions app/services/agent_prescription_search_context.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class AgentPrescriptionSearchContext < WebSearchContext
STRONG_PARAMS_LIST = [
:latitude, :longitude, :address, :city_code, :departement, :street_ban_id,
:service_id, :lieu_id, :date, :motif_name_with_location_type, :motif_category_short_name,
:motif_id, :user_selected_organisation_id, :prescripteur,
*WebSearchContext::ADDRESS_SELECTION_PARAMS,
*WebSearchContext::USER_CHOICE_PARAMS,
:date, :motif_category_short_name, :prescripteur,
:context,
{ # Paramètre supplémentaire qui n'apparait pas dans le WebSearchContext
user_ids: [],
Expand Down

0 comments on commit c6212eb

Please sign in to comment.