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.
The latest menu changes have caused custom menu blocks not to render any output. If I create a new menu and menu items, and then enable the block, no output from that block is visible.
Comment | File | Size | Author |
---|---|---|---|
#2 | fix_custom_menus_0.patch | 1.01 KB | TDobes |
#1 | fix_custom_menus.patch | 1021 bytes | TDobes |
Comments
Comment #1
TDobes CreditAttribution: TDobes commentedAttached is a patch which fixes the problem: custom menus were being defined as MENU_CUSTOM_ITEM rather than MENU_CUSTOM_MENU.
It also fixes a problem in which custom menus were mistakenly given the MENU_VISIBLE_IN_BREADCRUMB bit when edited. This would cause their titles to show up in the breadcrumb (which is undesirable... only menu items should be in there).
Note that this will not fix any non-functioning custom menus you've defined since this bug appeared. You'll have to delete and recreate them or update the "type" column in the DB manually.
Please review and apply.
Comment #2
TDobes CreditAttribution: TDobes commentedSmall adjustment to make the patch conform to the Drupal code standard. Sorry for bugspam.
Comment #3
JonBob CreditAttribution: JonBob commentedThis looks correct to me.
Comment #4
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #5
(not verified) CreditAttribution: commented