Skip to content

Commit ec05a8d

Browse files
committed
fix publishing orgs filter clearing bug
1 parent a934814 commit ec05a8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

application/templates/considerations.html

+4
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ <h1 class="govuk-heading-xl">Planning considerations backlog</h1>
112112

113113
{% if publishing_orgs_filter %}
114114
<div class="app-applied-filter__group">
115+
{% set args = request.args.to_dict(flat=False) %}
116+
{% if 'publishing-organisations' in args %}
117+
{% set _ = args.pop('publishing-organisations') %}
118+
{% endif %}
115119
<span class="app-applied-filter__name govuk-!-font-weight-bold">Publishing organisations:</span>
116120
<span class="app-applied-filter__item">{{ publishing_orgs_filter }}</span>
117121
<a href="{{ url_for('planning_consideration.considerations', **args) }}" class="govuk-link">Clear<span class="govuk-visually-hidden"> organisation filter</span></a></p>

0 commit comments

Comments
 (0)