This bug report comes from quicksketch, but I also was able to confirm.

If you put more than 21 items in a list (-10 to 10 weight), then all remaining items get -10. It is therefore impossible to weight your menus the way you want them.

Reproducing this is not as hard as you might think, because after enabling a dozen or so modules, you'll easily end up with > 21 items under admin/settings. For example, I enabled all core modules as well as a few odd-ball ones like Image*, Devel*, etc. I then moved "Throttle" above "Site maintenance" under Administer >> Site configuration and saved the form. Instead of these menu items appearing at the bottom of the list where they belonged, they were instead glomped right into the middle.

quicksketch says the fix for this is to make the menu page more like the taxonomy page where the weights are assigned according to the order of the $_POST array. He is unfortunately not going to have time to do this himself, however, as he's in LA next week and then off to Europe. :(

This might be critical, I'm not sure.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

theborg’s picture

Status: Active » Needs review
FileSize
978 bytes

When there are more than 21 menu items for a given parent, tabledrag.js stops assigning weights after reaching +10.

This patch gives the remaining items the highest number possible.

csevb10’s picture

In my opinion, this doesn't solve the underlying problem. This still creates a batch of menu items that can't be re-ordered as desired. The number of possible weights really needs to increase to allow for this case, it would seem.

pwolanin’s picture

41? 101?

pwolanin’s picture

or, rather than messing with system module, how about a fix in menu.admin.inc?

catch’s picture

Status: Needs review » Reviewed & tested by the community

Enabled all modules, stuck a bunch under site configuration, moved them around, works fine. RTBC.

Gábor Hojtsy’s picture

Version: 6.x-dev » 7.x-dev
FileSize
1.62 KB

I added an extra comma to the code comment and committed this one. Thanks! RTBC for 7.x as well.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.