Skip to content

Incorrect handling of null value in custom fields #5968

@karlism

Description

@karlism

NetBox version

v2.10.6

Python version

3.6

Steps to Reproduce

  1. Have existing custom field with empty value (in my case it's dcim > device custom field)
  2. Update from NetBox 2.9.11 to 2.10.6
  3. Add new device and leave this custom field empty while creating it
  4. Value of this custom field will be "" (empty string) instead of null

Expected Behavior

Value of empty custom fields should be null

Observed Behavior

Value of empty custom fields is "" (empty string). Devices that have been added prior to update to NetBox 2.10.6, still have proper value null for empty custom fields.

Metadata

Metadata

Assignees

Labels

status: 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