Experienced problem with d6.14. Always reproducible.

Steps to produce:

  1. Create a 27 character named menu. A 28-char one will fail because the max length is 27 - as expected.
  2. After creating 27-char menu item, go & try to delete it. It complains that 27 char is the max & will not delete the menu.

Looking into the code I found the following details:

  • DB actually has space for 32 char menu name...
  • which makes sense since the module name "menu-" is prepended to any custom menus - 27 char limit + 5 char addition = 32 char max
  • Form is validated on delete with the same max name length that is used when creating the menu, but this doesn't make sense since the module itself adds the "menu-".

The two options I found to delete it involved DB direct access. Either resize the menu name in menu_custom or just delete the record altogether. Much nicer if the module handled it gracefully.

Comments

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.