When a child menu item has the same name as its parent, the generated system path is wrong. Possibly only when the parent is a taxonomy path, as that's the only case I've tested.
To regenerate:
- Make a menu import file similar to attached menu-import-bug-demo.txt.
- Settings as in menu-import-settings.PNG, which I don't think matters, anyway.
- In the preview (menu-import-preview.PNG) the menu structure is kept, but parent items with identically named children, yellow rows, get the wrong system path. Different naming, green rows, results in expected system path.
- When the menu is imported (menu-import-resulting-menu.PNG) even the structure is messed up, probably because the system doesn't like a taxonomy path pointing to a node.
Core 7.10, module- and theme versions in version-info.txt.
Apart from that, thanks for a great module I couldn't do without!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | menu-import-bug-demo_0.txt | 218 bytes | lex0r |
| #2 | Selection_002.png | 32.42 KB | lex0r |
| #2 | Selection_003.png | 34.76 KB | lex0r |
| version-info.txt | 872 bytes | Arvid Herfjord | |
| menu-import-resulting-menu.PNG | 27.12 KB | Arvid Herfjord |
Comments
Comment #1
lex0r commentedThanks for the report, will fix asap...
Comment #2
lex0r commentedI tried to reproduce the issue and here are the results:
It looks like I need a full DB dump to be able to catch the issue. I inspected the code again, but found no problems like uninitialized variables, that could lead to wrong links.
Comment #3
Arvid Herfjord commentedOK, before making a DB dump, I thought I better make sure I still have the issue. But I don't! It's gone, evaporated!
Since last time, there's been updates and changes on my site, not to mention Xmas and a new year. And new URL-aliases for my stuff.
One funny thing when I tried the original import file (#1, menu-import-bug-demo.txt) was that some of the old path aliases still were mapped to the right node in the import, even though the aliases no longer existed in the url_alias table.
And when I now try to use a path alias in the import, like /en/product-group/about-changing-tables, it only maps to <front>. node/[node-no] works perfect, so no problem.
I guess this means case closed and a Happy New Year!