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

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112532 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 03:01:58 +00:00
parent 48cea784f6
commit 4d665ce268

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;