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.
Hello,
I found this little bug in clientside_validation.js file on Line 1170:
month = month - 1;
...
...
// and then this if statement on line 1177.
if (month.toString().length !== parts[param.monthpos].length){
result = false;
}
So if you choose a date in october you will get an error.
If you need month - 1 in
date.setMonth(month);
the best place to reduce the month number is directly above the date.setMonth(month) I think.
Thanks, dropfen
PS: I'm using the current stable release of clientside_validation maybe this bug is not present in dev, but I choosed the stable release because of other bugs in dev.
Comments
Comment #1
attiks CreditAttribution: attiks commentedshould be fixed in latest dev version, thanks
Comment #2
attiks CreditAttribution: attiks commentedA new release is created 7.x-1.38