Commit 80f911c9 authored by Dries's avatar Dries

- Patch #800696 by David_Rothstein: reenabling a module causes the module's...

- Patch #800696 by David_Rothstein: reenabling a module causes the module's links to be incorrectly mixed with custom menu links.
parent 1c9b84ad
......@@ -3145,7 +3145,7 @@ function _menu_router_build($callbacks) {
// previous iteration assigned one already), try to find the menu name
// of the parent item in the currently stored menu links.
if (!isset($parent['menu_name'])) {
$menu_name = db_query("SELECT menu_name FROM {menu_links} WHERE router_path = :router_path", array(':router_path' => $parent_path))->fetchField();
$menu_name = db_query("SELECT menu_name FROM {menu_links} WHERE router_path = :router_path AND module = 'system'", array(':router_path' => $parent_path))->fetchField();
if ($menu_name) {
$parent['menu_name'] = $menu_name;
}
......
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