Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: mercepedraza at Ymbra commentedThis patch tries to solve the explained problem.
Comment #3
mercepedraza CreditAttribution: mercepedraza at Ymbra 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.