get_field_value()
does not recognize null field values on bound forms
#19023
Labels
severity: medium
Results in substantial degraded or broken functionality for specfic workflows
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Milestone
Deployment Type
Self-hosted
NetBox Version
v4.2.6
Python Version
3.10
Steps to Reproduce
This was uncovered while using the
get_field_value()
utility function for dynamic form rendering. A simple proof is provided below.Expected Behavior
The function should always return the value of the field in a bound form.
Observed Behavior
When a null value is specified on a bound form, the function defers to the field's initial value:
The text was updated successfully, but these errors were encountered: