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__']

CommentFileSizeAuthor
#1 devel-2539722.patch6.47 KBOnkelTem
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

OnkelTem’s picture

Version: 7.x-1.5 » 7.x-1.x-dev
FileSize
6.47 KB

Despite the size of the patch it actually only unsets $form_state['values']['existing_menus']['__new-menu__'] and adds one check for $menus array emptiness.

willzyx’s picture

Status: Active » Closed (outdated)

Closing for lack of activity. Feel free to reopen if the issue still exists