Skip to content

Removal of an option in a CustomFieldChoice does not update objects with the choiceset and the option selected #17558

Closed
@cruse1977

Description

@cruse1977

Deployment Type

NetBox Cloud

NetBox Version

v4.1.1

Python Version

3.12

Steps to Reproduce

  • Create a CustomFieldChoices with some options (A,B,C)
image
  • Create a Device Z
  • Create a custom field of type selection with the CustomFieldChoices
  • Assign the custom field to Device
  • On Device Z, on the custom field, assign choice B
image
  • In the CustomFieldChoiceSet delete option B
image
  • View Device Z

Expected Behavior

The selected option on the choiceset attached to device Z should be null/none, due to the option removal

Observed Behavior

Option B remains until the object is edited or saved, despite no longer existing.

image

Note - Due to the options inherent within ChoiceSets (eg: Non Null, default etc) but I'm trying to ascertain if this is a bug (ie: NetBox should warn/error on Objects with this choice selected) or expected behaviour - hence requesting feedback

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions