From b885f8331aa3fd0443f9b95019b5ec97eaf9361f Mon Sep 17 00:00:00 2001 From: Kris Pypen Date: Thu, 16 Jul 2015 11:03:05 +0200 Subject: [PATCH] do not load all nodes when you are not in the page section --- src/Kunstmaan/NodeBundle/Helper/Menu/PageMenuAdaptor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kunstmaan/NodeBundle/Helper/Menu/PageMenuAdaptor.php b/src/Kunstmaan/NodeBundle/Helper/Menu/PageMenuAdaptor.php index 05911502e7..2a06b06468 100644 --- a/src/Kunstmaan/NodeBundle/Helper/Menu/PageMenuAdaptor.php +++ b/src/Kunstmaan/NodeBundle/Helper/Menu/PageMenuAdaptor.php @@ -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,