From 9d7192202d793b7eaf8d67b8100ecc2ad5494bd2 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 5 Dec 2023 15:09:59 -0500 Subject: [PATCH] Fixes #14392: Fix admin UI bulk actions --- netbox/templates/django/forms/widgets/checkbox.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netbox/templates/django/forms/widgets/checkbox.html b/netbox/templates/django/forms/widgets/checkbox.html index bbe201a29a8..35965713698 100644 --- a/netbox/templates/django/forms/widgets/checkbox.html +++ b/netbox/templates/django/forms/widgets/checkbox.html @@ -1,6 +1,7 @@ {% comment %} Include a hidden field of the same name to ensure that unchecked checkboxes - are always included in the submitted form data. + are always included in the submitted form data. Omit fields names + _selected_action to avoid breaking the admin UI. {% endcomment %} - +{% if widget.name != '_selected_action' %}{% endif %} {% include "django/forms/widgets/input.html" %}