BUGFIX Fixed deletion of RedirectorPage

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65769 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-11-13 01:43:38 +00:00
parent 0d5f7d2197
commit 1458d5b973

View File

@ -124,8 +124,9 @@ HTML;
function performReadonlyTransformation() {
$fieldName = $this->labelField;
$value = ($this->getByKey($this->value)) ? $this->getByKey($this->value)->$fieldName : '';
$source = array(
$this->value => $this->getByKey($this->value)->$fieldName
$this->value => $value
);
$field = new LookupField($this->name, $this->title, $source);
$field->setValue($this->value);