Issue #2198571 by Xano: Menu.inc must not unset MenuLink::menu_name.

8.0.x
Alex Pott 2014-03-20 16:18:35 +00:00
parent 880f697abb
commit de35da971d
1 changed files with 2 additions and 2 deletions

View File

@ -1667,8 +1667,8 @@ function menu_link_rebuild_defaults() {
$children[$link['parent']][$machine_name] = $machine_name;
$menu_link->parent = $link['parent'];
if (empty($link['menu_name'])) {
// Unset the default menu name so it's populated from the parent.
unset($menu_link->menu_name);
// Reset the default menu name so it is populated from the parent.
$menu_link->menu_name = NULL;
}
}
else {