From 197f94a6ef5bffae579fc467a2e413d127759057 Mon Sep 17 00:00:00 2001 From: Jason Novinger Date: Wed, 3 Dec 2025 18:47:03 -0600 Subject: [PATCH] Add guard for FilterModifierWidget with no lookups --- .../templates/widgets/filter_modifier.html | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/netbox/utilities/templates/widgets/filter_modifier.html b/netbox/utilities/templates/widgets/filter_modifier.html index e6fcb522e..fe1a11656 100644 --- a/netbox/utilities/templates/widgets/filter_modifier.html +++ b/netbox/utilities/templates/widgets/filter_modifier.html @@ -1,13 +1,15 @@
- {# Modifier dropdown - NO name attribute, just a UI control #} - + {% if widget.lookups %} + {# Modifier dropdown - NO name attribute, just a UI control #} + + {% endif %} {# Original widget - rendered exactly as it would be without our wrapper #}