Skip to content

Min/max values for decimal custom fields must be an integer #19896

@jeremystretch

Description

@jeremystretch

Deployment Type

Self-hosted

NetBox Version

v4.3.4

Python Version

3.10

Steps to Reproduce

  1. Open the form to create a new custom field
  2. Select an object type and give it a name
  3. Set the field type to "decimal"
  4. Set the maximum value for the field to 1.5
  5. Submit the form

Expected Behavior

The custom field should be created, with a maximum value of 1.5.

Observed Behavior

Form validation fails, with the error "Enter a whole number."

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions