1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #7417: Prevent exception when filtering objects list by invalid tag

This commit is contained in:
jeremystretch
2021-10-01 14:07:26 -04:00
parent 724997cb48
commit a1f271d7d9
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,7 @@
* [#7401](https://github.com/netbox-community/netbox/issues/7401) - Pin `jsonschema` package to v3.2.0 to fix REST API docs rendering * [#7401](https://github.com/netbox-community/netbox/issues/7401) - Pin `jsonschema` package to v3.2.0 to fix REST API docs rendering
* [#7411](https://github.com/netbox-community/netbox/issues/7411) - Fix exception in UI when adding member devices to virtual chassis * [#7411](https://github.com/netbox-community/netbox/issues/7411) - Fix exception in UI when adding member devices to virtual chassis
* [#7412](https://github.com/netbox-community/netbox/issues/7412) - Fix exception in UI when adding child device to device bay * [#7412](https://github.com/netbox-community/netbox/issues/7412) - Fix exception in UI when adding child device to device bay
* [#7417](https://github.com/netbox-community/netbox/issues/7417) - Prevent exception when filtering objects list by invalid tag
--- ---

View File

@ -398,6 +398,9 @@ def applied_filters(form, query_params):
applied_filters = [] applied_filters = []
for filter_name in form.changed_data: for filter_name in form.changed_data:
if filter_name not in form.cleaned_data:
continue
querydict = query_params.copy() querydict = query_params.copy()
if filter_name not in querydict: if filter_name not in querydict:
continue continue