mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Case insensitive DateField value navigation (fixes #5990, thanks gw0(
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@110838 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
3cb553165f
commit
07a53f38a3
@ -140,6 +140,9 @@ class DateField extends TextField {
|
||||
$this->value = null;
|
||||
$this->valueObj = null;
|
||||
} else {
|
||||
// Quick fix for overzealous Zend validation, its case sensitive on month names (see #5990)
|
||||
if(is_string($val)) $val = ucwords(strtolower($val));
|
||||
|
||||
if($this->getConfig('dmyfields')) {
|
||||
// Setting in correct locale
|
||||
if(is_array($val) && $this->validateArrayValue($val)) {
|
||||
|
Loading…
Reference in New Issue
Block a user