diff options
Diffstat (limited to 'src/controller/MenuAndPathsController.php')
| -rw-r--r-- | src/controller/MenuAndPathsController.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/controller/MenuAndPathsController.php b/src/controller/MenuAndPathsController.php index 5779b39..3ff7d54 100644 --- a/src/controller/MenuAndPathsController.php +++ b/src/controller/MenuAndPathsController.php | |||
| @@ -101,7 +101,6 @@ class MenuAndPathsController | |||
| 101 | 101 | ||
| 102 | //Director::$menu_data->addChild($page); // => pour sortChildren | 102 | //Director::$menu_data->addChild($page); // => pour sortChildren |
| 103 | $page->getParent()->addChild($page); // => pour sortChildren | 103 | $page->getParent()->addChild($page); // => pour sortChildren |
| 104 | //Director::$menu_data->sortChildren(true); // positions décaléees des nouveaux petits frères | ||
| 105 | $page->getParent()->sortChildren(true); // positions décaléees des nouveaux petits frères | 104 | $page->getParent()->sortChildren(true); // positions décaléees des nouveaux petits frères |
| 106 | $page->setParent(null); | 105 | $page->setParent(null); |
| 107 | 106 | ||
| @@ -116,7 +115,6 @@ class MenuAndPathsController | |||
| 116 | $page->getParent()->sortChildren(true); // positions décaléees des nouveaux petits frères | 115 | $page->getParent()->sortChildren(true); // positions décaléees des nouveaux petits frères |
| 117 | $page->fillChildrenPagePath($page->getParent()->getPagePath()); | 116 | $page->fillChildrenPagePath($page->getParent()->getPagePath()); |
| 118 | } | 117 | } |
| 119 | //$parent->sortChildren(true); // positions des enfants restants, inutile si la fonction est récursive? | ||
| 120 | $entityManager->flush(); | 118 | $entityManager->flush(); |
| 121 | 119 | ||
| 122 | // affichage | 120 | // affichage |
