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:
Ingo Schommer 2010-09-16 02:28:46 +00:00 committed by Sam Minnee
parent 3cb553165f
commit 07a53f38a3

View File

@ -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)) {