Reviewed & tested by the community
Project:
Multiple Node Menu
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Feb 2011 at 11:13 UTC
Updated:
3 May 2015 at 23:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rhmtts commentedFound it.
The problem is in the _multiple_node_menu_submit($node) function. It fails to preserve the value of the "has_children" field for the original menu item. This field is used by the Superfish module (and possibly by others) to determine whether a sub menu needs to be shown or not.
The solution is to retrieve the value of this field, store it and save it back for all the new menu items.
Here's the patch:
Comment #2
DrPhunk commentedI've used the above patch but still seem to have the same issue. Could there be any other changes that need to be made?
Comment #3
rhmtts commentedAh, yes. You need to go into the database and reset has_children to the correct value. Either that or you can go to one of the children of the broken submenu and save it. This will also reset the value of has_children to the correct value.
Comment #4
mrfelton commentedMarked #933948: Modifying has_children as a duplicate.
Comment #5
mrfelton commentedHere is a patch.
Comment #6
mrfelton commentedActually, I think the proposed patch in the other issue was better. Here is a patch for that.
Comment #7
technikh commentedsubscribing
Comment #8
PeteS commentedComment #9
jarrodirwin commentedPatch #6 works as expected and fixes the issue whereby the 'has_children' value is currently being lost on node save.
I vote this is RTBC.