Element search bug in custom fields. #8661

Closed
opened 2025-12-29 20:39:34 +01:00 by adam · 1 comment
Owner

Originally created by @penM000 on GitHub (Sep 22, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.6.2

Python version

3.10

Steps to Reproduce

  1. Create a selection list for a custom field.
  2. Create a custom field that can specify multiple selection lists.
  3. Go to the object to which the custom field is tied.
  4. Perform an edit and select the elements in the custom field.
  5. With the element selected, type in the search field something that does not exist in the selection list.
  6. An error message is displayed and what you have selected so far will disappear.

image
image
image
image
image
image

PS
This is not related to the bug, but when selecting elements, is there any way to select all of them, like "ALL"? I am currently clicking on elements one at a time and was wondering if there is such a feature.

Expected Behavior

NO Result" should appear and whatever you have selected so far should remain.

Observed Behavior

All selections made so far have disappeared.
I can also confirm that I am seeing errors.

Originally created by @penM000 on GitHub (Sep 22, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.6.2 ### Python version 3.10 ### Steps to Reproduce 1. Create a selection list for a custom field. 2. Create a custom field that can specify multiple selection lists. 3. Go to the object to which the custom field is tied. 4. Perform an edit and select the elements in the custom field. 5. With the element selected, type in the search field something that does not exist in the selection list. 6. An error message is displayed and what you have selected so far will disappear. ![image](https://github.com/netbox-community/netbox/assets/33054826/8472d03b-adbe-4f9d-a1e0-63f33d44ad3d) ![image](https://github.com/netbox-community/netbox/assets/33054826/5d021872-ce94-4581-944a-c33d42501bd5) ![image](https://github.com/netbox-community/netbox/assets/33054826/d6957da4-ee61-4314-9739-81bff3383b45) ![image](https://github.com/netbox-community/netbox/assets/33054826/4ea35a44-b1cf-4972-98ec-4fbb9d6db961) ![image](https://github.com/netbox-community/netbox/assets/33054826/238e63b3-306f-40b2-8cfa-18e9bc65667c) ![image](https://github.com/netbox-community/netbox/assets/33054826/44349afd-535b-4736-af5d-a7026bfec8dc) PS This is not related to the bug, but when selecting elements, is there any way to select all of them, like "ALL"? I am currently clicking on elements one at a time and was wondering if there is such a feature. ### Expected Behavior NO Result" should appear and whatever you have selected so far should remain. ### Observed Behavior All selections made so far have disappeared. I can also confirm that I am seeing errors.
adam added the type: bugstatus: acceptedseverity: medium labels 2025-12-29 20:39:34 +01:00
adam closed this issue 2025-12-29 20:39:35 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 25, 2023):

This can be triggered by making a REST API request which includes a search filter which does not match any of the available choices, e.g.

GET /api/extras/custom-field-choice-sets/1/choices/?q=foo
@jeremystretch commented on GitHub (Sep 25, 2023): This can be triggered by making a REST API request which includes a search filter which does not match any of the available choices, e.g. ``` GET /api/extras/custom-field-choice-sets/1/choices/?q=foo ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8661