I've uploaded the latest patched version from here http://drupal.org/node/222636#comment-1075769 and its still doing the same as the 6.x-0.1-beta version.

Basically when I edit and save a term under admin/content/taxonomy/edit/term/ then the vacabulary Breadcrumb path (taxonomy_breadcrumb): info is deleted.

If I go into the db and view the taxonomy_breadcrumb_vocabulary table and go to browse I get this MySQL returned an empty result set (i.e. zero rows). (Query took 0.0002 sec)

CommentFileSizeAuthor
#5 326155_taxonomy_breadcrumb.diff2.28 KBMGN
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MGN’s picture

Sorry, I've tried but I can't reproduce the problem that you describe. If I have a path for a vocabulary (Cars), and then edit and save a term (Ford) within that vocabulary, the vocabulary path (stored in taxonomy_breadcrumb_vocabulary) for Cars remains as it was before the path for the Ford term was edited and a new path for the Ford term is created in the taxonomy_breadcrumb_term table. If Ford is designated as the parent of another term (say Mustang), then a request for taxonomy/term/tid for Mustang correctly retrieves the Ford path from the taxonomy_breadcrumb_term table to set up the breadcrumb: Home>>Cars>>Ford>>Mustang. I believe this is exactly how it is supposed to work.

Perhaps you can give some additional information on how to produce the problem....I was a little confused by your explanation at first and may be misunderstanding the issue. If you are editing a term (Edit Term form) then the term's path is stored in taxonomy_breadcrumb_term table, and the vocabulary path (stored in taxonomy_breadcrumb_vocabulary table) shouldn't change. At least that's my understanding.

Hope this helps

end user’s picture

I'm at work right not but will try to give a better description later tonight.

MGN’s picture

Status: Active » Closed (fixed)

Closing this for inactivity. Please try the new 6.x-1.0 version and re-open this issue if you are still having trouble.

ntg’s picture

Hello
I have installed the latest version of the module and I have the same problem.

I'll explain to your my problem using your example.
I have a vocabulary named Cars and some terms named Ford, Chrysler, Mercedes etc
I edit the vocabulary at admin/content/taxonomy/edit/vocabulary/1 and I set the "Breadcrumb path (taxonomy_breadcrumb)". I click on save and the path is saved. I go back again to the vocabulary editing page to check if the breadcrumb path is still there and it is.

Then i edit the Ford term at admin/content/taxonomy/edit/term/2 , I enter the breadcrumb path cars/ford and click on save. I return to the page for editing the Ford term to check if the breadcrumb path is there and it is ok.

Now I go back to vocabulary editing page at admin/content/taxonomy/edit/vocabulary/1 and now the Breadcrumb path has disappeared...

I hope my explanation helps...

Looking forward to a solution to this bug.
Kind regards
Nikolas

MGN’s picture

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

Thanks, I was able to reproduce it this time. The problem seems to be that hook_taxonomy is called when the term is changed, but then also for the term's vocabulary. And since the vocabulary edit form was not called, taxonomy_breadcrumb_form_taxonomy_form_vocabulary_alter was not able to insert the vocabulary path. So the correct vocabulary path was being deleted when the term was updated.

The following patch just adds a check to make sure that taxonomy_breadcrumb_path has been set before updating the database.

Give it a try and let me know if solves your problem - seems to work correctly now for me.

Thanks for your help!

MGN’s picture

Version: 6.x-0.1-beta » master
Status: Needs review » Fixed

This has been committed to the 6.x branch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.