Skip to content

"Minimum Value" in "Custom Fields" view shows "—" instead of "0" #8038

@damiankaczkowski

Description

@damiankaczkowski

NetBox version

v3.1.0

Python version

3.9

Steps to Reproduce

  1. Go to "Custom Fields" -> "Add a new custom field".
  2. Choose "Type" "Integer", fill required details and also put "0" in "Minimum value". You may also put some other value in "Maximum value".
  3. Press "Create" and go to newly created "Custom Field" view (eg: /extras/custom-fields/1/).
  4. You will see that maximum value shows number but minimum value shows "—" instead of "0".
  5. Only if you click "Edit" you can confirm that "Minimum value" holds "0" in real.

Expected Behavior

Netbox should show real value stored in the field -> "0" instead of "—" which indicates that no value was input which is not true.

Observed Behavior

Netbox shows "—" instead of "0" which is counter-intuitive. Other fields with data entered just shows that data. Other fields without any data just shows "—". User can not say if the "Minimum value" holds "0" or does not hold any value at all until he clicks "Edit" button.

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