mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
9c1b4693f7
On IE8, camel case element attributes are NOT included in the object returned by $(elem).data(), meaning attrs defined in DateField.php (jqueryDateformat and isoDateformat) are NOT seen by the code in DateField.js (ie the "config" var doesn't have these set). Causing IE8 to fall back to using US date (mm/dd/yyyy) formats. This can subsequently cause validation issues if the user's date format is different. DateField.js already explicitly checks for jquerydateformat (all lowercase) so DateField.php has been modified to reflect the correct case for this attribute name