mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
0d5f7d2197
commit
1458d5b973
@ -124,8 +124,9 @@ HTML;
|
|||||||
|
|
||||||
function performReadonlyTransformation() {
|
function performReadonlyTransformation() {
|
||||||
$fieldName = $this->labelField;
|
$fieldName = $this->labelField;
|
||||||
|
$value = ($this->getByKey($this->value)) ? $this->getByKey($this->value)->$fieldName : '';
|
||||||
$source = array(
|
$source = array(
|
||||||
$this->value => $this->getByKey($this->value)->$fieldName
|
$this->value => $value
|
||||||
);
|
);
|
||||||
$field = new LookupField($this->name, $this->title, $source);
|
$field = new LookupField($this->name, $this->title, $source);
|
||||||
$field->setValue($this->value);
|
$field->setValue($this->value);
|
||||||
|
Loading…
Reference in New Issue
Block a user