Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rodvand opened this issue Aug 3, 2023 · 1 comment
Closed

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

rodvand opened this issue Aug 3, 2023 · 1 comment
Assignees
Labels
beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@rodvand
Copy link
Contributor

rodvand commented Aug 3, 2023

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/

@rodvand rodvand added the type: bug A confirmed report of unexpected behavior in the application label Aug 3, 2023
@rodvand rodvand changed the title Device view and custom field choices return 404 Selecting custom field with choice set in dropdown returns error Aug 3, 2023
@abhi1693 abhi1693 added status: accepted This issue has been accepted for implementation beta Concerns a bug/feature in a beta release labels Aug 3, 2023
@jeremystretch jeremystretch self-assigned this Aug 3, 2023
@jeremystretch
Copy link
Member

Thanks for the report @rodvand!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants