Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Field "options" of existent menu items is overriding on any changes, but there can be some data stored by other modules. For example, Menu Icons module stores additional classes in "options" field. So, if you change term, its menu item will loose menu icon.
And more, if your taxonomy menu contains nodes count, attaching/detaching nodes to term will erase "options" too.
Patch fixes this problem, so we can create taxonomy menu, attach icons to menu items and then edit terms. Patch was made from 6.x-2.8.
Comment | File | Size | Author |
---|---|---|---|
#2 | taxonomy_menu-825094-2.patch | 3.59 KB | indytechcook |
#1 | taxonomy_menu-6.x-2.8-keep-options.patch | 1.72 KB | Dmitriy.trt |
Comments
Comment #1
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedComment #2
indytechcook CreditAttribution: indytechcook commentedThanks Dmitriy,
I took this one step further. Please test this patch to be sure it still resolves your issue.
Thanks.
Comment #3
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedYour patch resolves my problem, but it produces warning on node save:
user warning: Duplicate entry '269-11' for key 'PRIMARY' query: INSERT INTO taxonomy_menu (mlid, tid, vid) VALUES (269, 11, 2) in /home/dmitriy/Docs/Sites/orion/sites/all/modules/taxonomy_menu/taxonomy_menu.database.inc on line 22.
I've patched 6.x-2.8 release, by the way.
Comment #4
indytechcook CreditAttribution: indytechcook commentedI found the bug and committed the patch.
http://drupal.org/cvs?commit=379810
Comment #5
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedGreat! Thanks!