mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #7129 from mfendeksilverstripe/master
Limited nodes with too many children are no longer accessible
This commit is contained in:
commit
aafa054cf7
@ -407,13 +407,14 @@ class MarkedSet
|
||||
// Build root rode
|
||||
$expanded = $this->isExpanded($node);
|
||||
$opened = $this->isTreeOpened($node);
|
||||
$count = ($limited && $numChildren > $this->getMaxChildNodes()) ? 0 : $numChildren;
|
||||
$output = [
|
||||
'node' => $node,
|
||||
'marked' => $this->isMarked($node),
|
||||
'expanded' => $expanded,
|
||||
'opened' => $opened,
|
||||
'depth' => $depth,
|
||||
'count' => $numChildren, // Count of DB children
|
||||
'count' => $count, // Count of DB children
|
||||
'limited' => $limited, // Flag whether 'items' has been limited
|
||||
'children' => [], // Children to return in this request
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user