Selecting custom field with choice set in dropdown returns error #8408

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

Originally created by @rodvand on GitHub (Aug 3, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.6-beta1

Python version

3.8

Steps to Reproduce

  1. Create a custom field choice set named "My choices" with "Extra Choices" of choice1,choice1
  2. Create a custom field named "All my choices" using the choice set and attach it to DCIM -> Device
  3. Go to a device and edit
  4. Go to your custom field of "All my choices" and open the dropdown

Expected Behavior

The choices show up and you can select your choice

Observed Behavior

You briefly see the choice from your choice set, then an error shows up. If you check your developer tools in the browser you can see that the view tries to fetch the choices from the following API endpoint /api/extras/custom-field-choices/1/choices/?brief=true while it should really fetch this from /api/extras/custom-field-choice-sets/1/choices/

Originally created by @rodvand on GitHub (Aug 3, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.6-beta1 ### Python version 3.8 ### Steps to Reproduce 1. Create a custom field choice set named "My choices" with "Extra Choices" of choice1,choice1 2. Create a custom field named "All my choices" using the choice set and attach it to DCIM -> Device 3. Go to a device and edit 4. Go to your custom field of "All my choices" and open the dropdown ### Expected Behavior The choices show up and you can select your choice ### Observed Behavior You briefly see the choice from your choice set, then an error shows up. If you check your developer tools in the browser you can see that the view tries to fetch the choices from the following API endpoint `/api/extras/custom-field-choices/1/choices/?brief=true` while it should really fetch this from `/api/extras/custom-field-choice-sets/1/choices/`
adam added the type: bugstatus: acceptedbeta labels 2025-12-29 20:36:21 +01:00
adam closed this issue 2025-12-29 20:36:21 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 3, 2023):

Thanks for the report @rodvand!

@jeremystretch commented on GitHub (Aug 3, 2023): Thanks for the report @rodvand!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8408