This may be a dupe of http://drupal.org/node/271112, but that thread is for the 6.x version. My issue is that since upgrading to version 5.x-1.2, my top-level parent node menus are getting set to a weight of -10, and I can't change them manually. If I edit the node and change the menu weight, the weight just gets set back to -10. If I set the menu weight in Administer > Site building > Menus, the menu weight sticks but the menu gets all out of order.
If I disable the Node Hierarchy module, the issue goes away, and I can set my top-level parents to their correct menu weights.
Any ideas?
Comments
Comment #1
blowski commentedI constantly suffer the same problem. The site outline page behaves in mysterious ways.
I've found that doing a few at a time, and pressing refresh to see if it's actually remembered it eventually works, but it doesn't scale. The site outline functionality should either behave like the Drupal Menu and Taxonomy blocks, or be pure HTML.
Comment #2
broeker commentedI've been poking through the queue for versions 5.x and 6.x and it appears there are several variations of this problem. Here is ours for version 5.x and our subsequent fix:
PROBLEM:
After editing or saving a node, all of the top-level menu items are re-ordered in a highly annoying fashion. If you reset, they are blasted again whenever a new node is added to the site. We have tracked our particular problem down to this line:
nodehierarchy.module Line 400:
What is happening here is that inserting ANY node without setting an explicit parent (regardless of whether that content type is eligible as part of a hierarchy) ends up re-ordering all of the site's top-level menu items based on the order they were originally inserted into the Drupal menu table.
SOLUTION:
According to our initial tests it appears a very simple fix is to add a quick check for the existence of a parent:
CAVEAT:
I haven't had time to explore other possible implications of this fix, and it appears our symptoms are at least slightly different than some of the other related posts in the queue so your mileage may vary. Not sure if such a small change warrants a patch but will create one if desired . . .
Comment #3
ronan commentedI have committed a variation on this update to the latest 5.x-1.x-dev. This should hopefully fix this issue. Let me know if it persists.
Thanks