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.
1) Go to admin/config/development/generate/menu
2) Select checkbox "Create new menu(s)", 1 menu, 150 links, then "Generate"
Expected result: 1 new menu with 150 links
Reality: 1 new menu with amount of links much fewer then 150 in total.
Debugging revealed that links are generated for two menus: one real - just created, and one fake - with name "__new-menus__" which came from $form_state['values']['existing_menus']['__new-menu__']
Comment | File | Size | Author |
---|---|---|---|
#1 | devel-2539722.patch | 6.47 KB | OnkelTem |
Comments
Comment #1
OnkelTem CreditAttribution: OnkelTem as a volunteer commentedDespite the size of the patch it actually only unsets
$form_state['values']['existing_menus']['__new-menu__']
and adds one check for $menus array emptiness.Comment #2
willzyx CreditAttribution: willzyx commentedClosing for lack of activity. Feel free to reopen if the issue still exists