Skip to content

Commit

Permalink
[REGRESSION] afficher les propositions de services quand il n'y a pas…
Browse files Browse the repository at this point in the history
… de direction appliquée (#831)

[REGRESSION] afficher les propositions de services quand il n'y a pas de direction appliqué
  • Loading branch information
kolok committed Aug 28, 2024
1 parent 47d6182 commit 06ab1d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h2 class="fr-h4 fr-mt-3w qfdmo-text-center">
<input
id="{{ form.direction.id_for_label}}"
name="{{ form.direction.html_name}}"
value="{{ form.direction.value() }}"
value="{{ form.direction.value() or '' }}"
type="hidden"
data-search-solution-form-target="direction"
>
Expand Down
2 changes: 1 addition & 1 deletion jinja2/qfdmo/_addresses_partials/map_and_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ <h3 class="qfdmo-text-2xl sm:qfdmo-text-4xl qfdmo-text-center text-black qfdmo-m
<turbo-frame id="adr_detail"
data-search-solution-form-target="srcDetailsAddress"
{% if request.GET.get('detail') %}
src="{{ url('qfdmo:adresse_detail', args=[request.GET.get('detail')])}}?{% if is_carte(request) %}carte=1&{% endif %}direction={{ direction }}&latitude={{ latitude }}&longitude={{ longitude }}"
src="{{ url('qfdmo:adresse_detail', args=[request.GET.get('detail')])}}?{% if is_carte(request) %}carte=1&{% endif %}{% if direction %}direction={{ direction }}&{% endif %}latitude={{ latitude }}&longitude={{ longitude }}"
{% endif %}
>
</turbo-frame>
Expand Down

0 comments on commit 06ab1d9

Please sign in to comment.