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.
When a taxonomy menu is deleted, the _taxonomy_menu_delete_all function is called.
The way this function works should be rethought as it directly delete rows from the menu_links table instead of using core menu.inc functions.
Deleting rows from the table is not enough.
This way, the item that was containing the taxonomy menu before its deletion is not updated. Thus, its has_children status stays the same, and the item without children keeps showing as collapsed instead of leaf.
Comment | File | Size | Author |
---|---|---|---|
#7 | taxonomy_menu-use_menu_api-882126-7.patch | 1.17 KB | jenlampton |
| |||
#3 | issue-882126-Module-does-not-update-parent-items-has.patch | 1.02 KB | Leon Kessler |
Comments
Comment #1
dstolComment #2
anrikun CreditAttribution: anrikun commentedCan you tell me in which version this is fixed? in dev?
Comment #3
Leon Kessler CreditAttribution: Leon Kessler commentedThis has definitely not been fixed. No idea why it was closed.
I've created a patch that runs the delete through taxonomy_menu_handler(), so that it uses the standard hook_taxonomy_menu_delete() which in turn uses menu_link_delete. The correct way (the way I assumed it would work, not sure why it was done differently, if someone know's please say).
The patch also updates the taxonomy_menu_handler() function so that it handles delete operations properly according to the function definition.
Thanks
Leon
Comment #4
Leon Kessler CreditAttribution: Leon Kessler commentedComment #6
hles CreditAttribution: hles commentedShould be fixed with Commit 4cb4f2b. Keeping issue open until there is a path for upgrading to taxonomy menu 7.x-2.x.
Comment #7
jenlamptonHere's a patch for the 1.x branch based on http://drupalcode.org/project/taxonomy_menu.git/commit/4cb4f2b