OS: Windows XP
Webserver name and version: Apache 2.2.11
PHP version: 5.3.0
Drupal version: 7.x-dev
Drupal path: Web root

If I add an item to the Management menu, all the items from the admin toolbar disappear. The only items left are the Home link and the "Hello Kemp" and "Logout" links. I can reproduce this with basic page, book page, and article (the only content types I have enabled on my test install). Even if the new menu item is disabled the effect stands. The only way to get the toolbar links back is to delete the new menu item.

This is when I add an item to the "top level" of the Management menu, not under the Administration section (thus not attempting to appear in the admin toolbar).

Comments

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)

i can't reproduce this. anyone?

David_Rothstein’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

I can reproduce it (or at least something similar to it). I think it's basically because the Toolbar module is assuming that 'admin' will always be the last item in the Management menu:

    $tree = menu_tree_all_data('management', $admin_link, $admin_link['depth'] + 1);
    // The tree will be a sub-tree with the admin link as a single root item.
    // @todo It is wrong to assume it's the last.
    $admin_link = array_pop($tree);

If it isn't, bad things happen.

This is part of a nice big mess that is being discussed over #596010: Move "Administration" link into Account menu and make Toolbar output first level of 'admin' menu though. Marking as duplicate of that one.