Problem/Motivation
The Integer field will accept integers between a given minimum and maximum value. A validation error is thrown if the number falls outside this range.
But the field does not validate and throw errors for the following cases
- non-digit values
- non-integer number values
The problem is that these values "pass" validation and the value are then committed. But the database field type is int
, and the field value is returned as empty.
Proposed resolution
Add validation for non-digit values and non-integer values.
Add 2 tests, for each validation case.
Remaining tasks
Write the validation cases.
Write the tests.
User interface changes
None.
API changes
None.
Attachment | Size | Status | Test result | Operations |
---|---|---|---|---|
Screenshot_6_20_13_2_46_PM.png | 407.41 KB | Ignored: Check issue status. | None | None |