Skip to content

Commit

Permalink
Merge pull request #557 from krispypen/feature/performance_backend_pa…
Browse files Browse the repository at this point in the history
…gemenuadaptor

[NodeBundle] Do not load all nodes when you are not in the page section
  • Loading branch information
Roderik van der Veer committed Jul 16, 2015
2 parents dcaa397 + b885f83 commit b1398bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kunstmaan/NodeBundle/Helper/Menu/PageMenuAdaptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function adaptChildren(MenuBuilder $menu, array &$children, MenuItem $par
$menuItem->setActive(true);
}
$children[] = $menuItem;
} else {
} elseif (stripos($request->attributes->get('_route'), 'KunstmaanNodeBundle_nodes') === 0) {
$treeNodes = $this->getTreeNodes(
$request->getLocale(),
PermissionMap::PERMISSION_EDIT,
Expand Down

0 comments on commit b1398bf

Please sign in to comment.