The Add Tags field in the bulk edit form is not limited by the object types setting on the tag #8420

Closed
opened 2025-12-29 20:36:31 +01:00 by adam · 0 comments
Owner

Originally created by @kkthxbye-code on GitHub (Aug 4, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.6.0-beta1

Python version

3.10

Steps to Reproduce

  1. Create a tag tag1 with the object types set to DCIM > Device
  2. Create a site site1
  3. Edit site1 and observe that the tags list does not contain tag1
  4. Go to the site list, select the checkbox to the left of site1 and press Edit Selected
  5. Open the Add tags or Remove tags select field

Expected Behavior

The select field should not contain tag1

Observed Behavior

The select field contains tag1

The implementation just looks at the name of the field, which doesn't work as the names of the fields are add_tags and remove_tags:

https://github.com/netbox-community/netbox/pull/12982/files#diff-e5b671e6922772660da9b89ea1d237483d2ebbd9bec451079b32fa22b09b8840R38-R39

Also, I don't believe that the bulk edit form inherits from NetBoxModelForm so the code is not touched anyway.

Originally created by @kkthxbye-code on GitHub (Aug 4, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.6.0-beta1 ### Python version 3.10 ### Steps to Reproduce 1. Create a tag `tag1` with the object types set to DCIM > Device 2. Create a site `site1` 3. Edit site1 and observe that the tags list does not contain `tag1` 4. Go to the site list, select the checkbox to the left of `site1` and press `Edit Selected` 5. Open the `Add tags` or `Remove tags` select field ### Expected Behavior The select field should not contain `tag1` ### Observed Behavior The select field contains `tag1` The implementation just looks at the name of the field, which doesn't work as the names of the fields are `add_tags` and `remove_tags`: https://github.com/netbox-community/netbox/pull/12982/files#diff-e5b671e6922772660da9b89ea1d237483d2ebbd9bec451079b32fa22b09b8840R38-R39 Also, I don't believe that the bulk edit form inherits from `NetBoxModelForm` so the code is not touched anyway.
adam added the type: bugstatus: acceptedbetaseverity: low labels 2025-12-29 20:36:31 +01:00
adam closed this issue 2025-12-29 20:36:31 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8420