mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
DataObject decorator bug fixing - addStaticVars() function.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39284 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4160579f97
commit
94fc673f97
@ -243,14 +243,12 @@ class Object {
|
|||||||
if (empty(Object::$extraStatics[$class])) {
|
if (empty(Object::$extraStatics[$class])) {
|
||||||
Object::$extraStatics[$class] = (array)$statics;
|
Object::$extraStatics[$class] = (array)$statics;
|
||||||
} else {
|
} else {
|
||||||
Object::$extraStatics[$class] = array_merge(
|
$ar1 = (array)Object::$extraStatics[$class]; // First Array To Merge
|
||||||
(array)Object::$extraStatics[$class],
|
$ar2 = (array)$statics; // Second Array To Merge
|
||||||
(array)$statics
|
Object::$extraStatics[$class] = array_merge_recursive($ar1, $ar2);
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function parentClass() {
|
function parentClass() {
|
||||||
return get_parent_class($this);
|
return get_parent_class($this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user