mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
48cea784f6
commit
4d665ce268
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user