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

attiks’s picture

Version: 7.x-1.37 » 7.x-1.x-dev

should be fixed in latest dev version, thanks

attiks’s picture

Status: Active » Fixed

A new release is created 7.x-1.38

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.