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.
Problem/Motivation
Date validation fails on month comparison as second digit of range value is ignored. For example, if end date = input date = 2012-08-31, then the validation says the date is not in the range (endpoint dates are included).
Note: You might add a component category of "JS validation" for these types of issues.
Proposed resolution
Add a second parameter to all parseInt() calls in validation code.
Remaining tasks
Review and test.
User interface changes
None.
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1765798-second-digit.patch | 1.97 KB | solotandem |
Comments
Comment #1
solotandem CreditAttribution: solotandem commentedPatch adds missing parameter to parseInt() calls.
Comment #2
Jelle_SFixed in latest dev. Thanks for the patch!