Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, I have e three level menu, like:
- A
-- B
--- C
--- D
I created a control panel block, chose "B" as Source menu item and when I view the block, the block is empty.
Trying to debug the code I found that at line there is 122:
if (is_array($below) && (count($panel_menu['below']) > 0)) return $below;
but $panel_menu is undefined. I tried to substitute $panel_menu['below'] with $below, like this:
if (is_array($below) && (count($below) > 0)) return $below;
And it seems to work, I provide a patch. Is it a correct solution?
Comment | File | Size | Author |
---|---|---|---|
controlpanel_three_level_menu.patch | 521 bytes | matteogeco |