1. Add one Primary menu item named "Link 1" with path "node/1".
2. Add second Primary menu item named "Link 2" with path "node/1".
3. Menu item named "Link 1" is removed and "Link 2" is kept
If i do the same with "" the "Link 1" is not deleted.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | multi-node-links-179578-4.patch | 1.21 KB | pwolanin |
Comments
Comment #1
pwolanin commentedI'll take a look - in D6 you should be able to create multiple links to the same path (if you really want to)
Comment #2
pwolanin commentedok, I can reproduce this with a node link, but menu module will happily add two links to ''
Comment #3
pwolanin commentedah, all the node links are in the DB table, they are just not being displayed for some reason! So the initial description of the bug is wrong - a new link is created with a new mlid, but for some reason only one of the two (or more) links is displayed.
Comment #4
pwolanin commentedthe bug is in function menu_tree_collect_node_links() and function menu_tree_check_access().
patch attached, seems to fix the problem in a reasonable way.
Comment #5
pwolanin commentedComment #6
chx commentedyes, this works well. we can change the node_links array as we want because it's only used at these two places.
Comment #7
hass commentedPatch works for me, too.
Comment #8
gábor hojtsyThanks, committed.
Comment #9
(not verified) commented