Skip to content

Commit

Permalink
Fixes #14392: Fix admin UI bulk actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Dec 7, 2023
1 parent 95a8415 commit 9d71922
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netbox/templates/django/forms/widgets/checkbox.html
Original file line number Diff line number Diff line change
@@ -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 %}
<input type="hidden" name="{{ widget.name }}" value="">
{% if widget.name != '_selected_action' %}<input type="hidden" name="{{ widget.name }}" value="">{% endif %}
{% include "django/forms/widgets/input.html" %}

0 comments on commit 9d71922

Please sign in to comment.