BUGFIX Prevent DateField->performReadonlyTransformation() from segfaulting on PHP 5.2 due to broken __toString() casting (fixes #5713, thanks charden)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@106666 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-06-17 23:14:27 +00:00 committed by Sam Minnee
parent 44698d0a38
commit 8cfe7aa11b

View File

@ -218,7 +218,7 @@ class DateField extends TextField {
}
function performReadonlyTransformation() {
$field = new DateField_Disabled($this->name, $this->title, $this->valueObj);
$field = new DateField_Disabled($this->name, $this->title, $this->dataValue());
$field->setForm($this->form);
$field->readonly = true;