the hierarchy (parent) don't work
bastnic - March 17, 2008 - 16:27
| Project: | Taxonomy import/export via XML |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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'];
}
#1
+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
#2
sethcohn : yes you are right, sorry ;).
I'm happy to helping someone
#3
I added that to the D6 branch for now.
#4
Hi, and how about the Drupal 5 branch please?
Thanks in advance for considering.
greetings,
Martijn
#5
Should be in the 5.x dev version.
#6
It seems to be integrate in the 5.x-1.x-dev. Thanks.
#7
Issue cleanup. Looks old and fixed