From 2ef6d7f76adbb3ee6cee688bf24842c41555486c 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 #}