Fix menu item parents not being loaded into dropdown

This also means that when you edit and save a menu item, it gets moved out of its parent to the root of the menu.
Signed-off-by: 's avatarMicheal Mand <micheal@kmdwebdesigns.com>
parent e10057af
...@@ -84,7 +84,7 @@ class MenuItemController extends AdminBaseController ...@@ -84,7 +84,7 @@ class MenuItemController extends AdminBaseController
*/ */
private function getMenuSelect($menu) private function getMenuSelect($menu)
{ {
return $menu->menuitems()->where('is_root', '!=', true)->get()->nest()->listsFlattened('title'); return $menu->menuitems()->where('is_root', '!=', true)->get()->noCleaning()->nest()->listsFlattened('title');
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment