Closed (fixed)
Project:
Admin
Version:
6.x-1.0-beta2
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2009 at 19:04 UTC
Updated:
13 Aug 2009 at 14:20 UTC
In admin_menu_alter function we have this code (line 66), that is moving all 'admin/*' items to 'admin' menu:
if (strpos($path, 'admin') === 0) {
$items[$path]['menu_name'] = 'admin';
}
The problem is that all 'admin*/*' items are moved too.
The code above will fix the issue:
$path_aux = explode('/', $path);
if ($path_aux[0] == 'admin') {
$items[$path]['menu_name'] = 'admin';
}
Comments
Comment #1
yhahn commentedThank you. Committed: http://drupal.org/cvs?commit=244880