I think I discovered the trouble I was experiencing in my previous post: http://drupal.org/node/748636

It seems that the taxonomy_builder_save_terms function fails if the first level term exists in a different vocabulary. For example, I create two vocabularies and save the following to vocab#1:

United States
-Florida
--Cocoa Beach
--Orlando
-South Carolina
--Greenville
--Columbia

The API function works perfectly and saves the structure with no problems. If I then try to save the same structure to vocab#2, then the API seems to fail because it doesn't save anything. Changing the first level term (United States) to something else like USA, then the vocab gets saved.

I tested this on a fresh install of D6.17 and Taxonomy Builder API 6.x-1.0-beta1.

CommentFileSizeAuthor
#1 vocabs.patch1.92 KBmkinnan

Comments

mkinnan’s picture

Status: Active » Needs review
StatusFileSize
new1.92 KB

I made a batch. It was tested and seemed to work fine for me.

This patch changes the SQL statement in the taxonomy_builder_get_term function to search ONLY the vocabulary in which you are saving the terms. The unpatched SQL statement searches ALL vocabularies for the terms you are saving.

cpliakas’s picture

Status: Needs review » Closed (won't fix)

Closed due to end of life announcement.