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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dstol’s picture

Status: Active » Closed (fixed)
anrikun’s picture

Can you tell me in which version this is fixed? in dev?

Leon Kessler’s picture

Status: Closed (fixed) » Needs review
FileSize
1.02 KB

This 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

Leon Kessler’s picture

Version: 6.x-2.9 » 7.x-1.x-dev

Status: Needs review » Needs work

The last submitted patch, issue-882126-Module-does-not-update-parent-items-has.patch, failed testing.

hles’s picture

Should be fixed with Commit 4cb4f2b. Keeping issue open until there is a path for upgrading to taxonomy menu 7.x-2.x.

jenlampton’s picture

Issue summary: View changes
Status: Needs work » Needs review
FileSize
1.17 KB

Here's a patch for the 1.x branch based on http://drupalcode.org/project/taxonomy_menu.git/commit/4cb4f2b