Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

A min value of "0" in a Number field is not respected #3598

Closed
benface opened this issue Jan 7, 2019 · 1 comment
Closed

A min value of "0" in a Number field is not respected #3598

benface opened this issue Jan 7, 2019 · 1 comment

Comments

@benface
Copy link
Contributor

benface commented Jan 7, 2019

Steps to reproduce

  1. Create a Number field with a "Min value" of "0" (the default)
  2. Add that field to any field layout (let's say an entry type)
  3. Create or edit an entry containing that field, and set its value to -1. Try to save.

Expected result: There should be a validation error because -1 is smaller than the minimum value of 0.
Actual result: No error, the value of -1 is saved successfully.

Additional info

  • Craft version: 3.0.36
  • PHP version: 7.2.10
  • Database driver & version: MySQL 5.7.23
@brandonkelly
Copy link
Member

Thanks for reporting! Fixed for tomorrow’s release.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants