mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
#2387 - Fields specified in DataObjectDecor not saved in some cases
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.2@52441 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
28ade5332e
commit
4ea643b2e2
@ -47,7 +47,9 @@ abstract class DataObjectDecorator extends Extension {
|
||||
foreach($fields as $relationType => $fields) {
|
||||
if(in_array($relationType, self::$decoratable_statics)) {
|
||||
eval("$className::\$$relationType = array_merge((array){$className}::\$$relationType, (array)\$fields);");
|
||||
$this->owner->set_stat($relationType, eval("return $className::\$$relationType;"));
|
||||
}
|
||||
$this->owner->set_uninherited('fieldExists', null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user