Skip to content

Commit a1f271d

Browse files
committed
Fixes #7417: Prevent exception when filtering objects list by invalid tag
1 parent 724997c commit a1f271d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/release-notes/version-3.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* [#7401](https://github.com/netbox-community/netbox/issues/7401) - Pin `jsonschema` package to v3.2.0 to fix REST API docs rendering
1818
* [#7411](https://github.com/netbox-community/netbox/issues/7411) - Fix exception in UI when adding member devices to virtual chassis
1919
* [#7412](https://github.com/netbox-community/netbox/issues/7412) - Fix exception in UI when adding child device to device bay
20+
* [#7417](https://github.com/netbox-community/netbox/issues/7417) - Prevent exception when filtering objects list by invalid tag
2021

2122
---
2223

netbox/utilities/templatetags/helpers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,9 @@ def applied_filters(form, query_params):
398398

399399
applied_filters = []
400400
for filter_name in form.changed_data:
401+
if filter_name not in form.cleaned_data:
402+
continue
403+
401404
querydict = query_params.copy()
402405
if filter_name not in querydict:
403406
continue

0 commit comments

Comments
 (0)