When comparing a value introduced in a text field where the numeric values rule is applied with a min value the rule compares them as strings and the result is not the expected one. My idea is to fix it with a cast to float of the value to be compared, as it's done with the max rule.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | clientside_validation-2628306-2.patch | 668 bytes | mercepedraza |
Comments
Comment #2
mercepedraza commentedThis patch tries to solve the explained problem.
Comment #3
mercepedraza commentedComment #4
joelpittetThis is great for consistency, though shouldn't we do it in all cases? There are 4 min values got in the same way and 3 other max values that don't have floatval() casts.
Comment #5
jelle_sFix that should catch all numeric settings pushed to dev.