mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Partially reverted r98382 which added unnecessarily defensive checking to Hierarchy->allChildren()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98404 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
badd45a663
commit
5ae6f3b9e4
@ -416,7 +416,7 @@ class Hierarchy extends DataObjectDecorator {
|
||||
// Cache the allChildren data, so that future requests will return the references to the same
|
||||
// object. This allows the mark..() system to work appropriately.
|
||||
if(!$this->_cache_allChildren) {
|
||||
$this->_cache_allChildren = $this->owner ? $this->owner->stageChildren(true) : null;
|
||||
$this->_cache_allChildren = $this->owner->stageChildren(true);
|
||||
}
|
||||
|
||||
return $this->_cache_allChildren;
|
||||
|
Loading…
x
Reference in New Issue
Block a user