If you restrict a Number field with a min or max value, the validation messages are not precise.

For example, if you set a minimum value of 0.01, the error message is !name field value must be greater than 0.01., but that's not true, because it may also be equal to 0.01. This happens similarly when setting a maximum value.

In addition, the description is also inaccurate: Minimum numeric value. For example, 0 would ensure positive numbers.

Zero is neither positive nor negative, so it's more accurate to say non-negative instead of positive.

I do not know if the Drupal 8 branch has the same problems or not.

Comments

solideogloria created an issue. See original summary.

solideogloria’s picture

Status: Active » Needs review
solideogloria’s picture

Issue summary: View changes
solideogloria’s picture

Issue summary: View changes

Status: Needs review » Needs work

The last submitted patch, webform-min-max-language.patch, failed testing. View results

solideogloria’s picture

Status: Needs work » Needs review
StatusFileSize
new2.6 KB

Fixed tests to match.

liam morland’s picture

Status: Needs review » Fixed

Thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.