Commit 626e2cbe authored by lkmorlan's avatar lkmorlan Committed by Jelle
Browse files

Issue #1886424 by Liam Morland, kpaxman: Fixed Date validation fails when text...

Issue #1886424 by Liam Morland, kpaxman: Fixed Date validation fails when text is used instead of numbers.
parent e7b54781
......@@ -1192,7 +1192,7 @@
month = date.getMonth();
}
else {
if (typeof Drupal.settings.clientsideValidation.general.months[parts[param.monthpos]] !== undefined) {
if (typeof Drupal.settings.clientsideValidation.general.months[parts[param.monthpos]] !== 'undefined') {
month = Drupal.settings.clientsideValidation.general.months[parts[param.monthpos]];
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment