Closed (fixed)
Project:
Taxonomy import/export via XML
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2008 at 16:27 UTC
Updated:
30 Aug 2009 at 10:38 UTC
Possible to correct in adding intval to $term['old_tid'] :
if (!$term_exists) {
taxonomy_save_term($term);
print_r($term);
// Map the term tid from the imported XML file to the tid in term_data database table
$new_tid[intval($term['old_tid'])] = $term['tid'];
$new_terms[] = $term['name'];
}
Comments
Comment #1
sethcohn commented+1
Your timing was perfect, as I just had the same problem, and discovered this fix right away... thank you!
Remove the print_r line, of course, which is for debugging only
Comment #2
bastnic commentedsethcohn : yes you are right, sorry ;).
I'm happy to helping someone
Comment #3
nicolash commentedI added that to the D6 branch for now.
Comment #4
summit commentedHi, and how about the Drupal 5 branch please?
Thanks in advance for considering.
greetings,
Martijn
Comment #5
nicolash commentedShould be in the 5.x dev version.
Comment #6
bastnic commentedIt seems to be integrate in the 5.x-1.x-dev. Thanks.
Comment #7
dman commentedIssue cleanup. Looks old and fixed