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
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

sethcohn - March 17, 2008 - 16:49

+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

bastnic - March 18, 2008 - 23:29

sethcohn : yes you are right, sorry ;).

I'm happy to helping someone

#3

NicolasH - April 11, 2008 - 09:54
Status:active» fixed

I added that to the D6 branch for now.

#4

Summit - April 16, 2008 - 12:44

Hi, and how about the Drupal 5 branch please?
Thanks in advance for considering.
greetings,
Martijn

#5

NicolasH - April 22, 2008 - 12:08
Version:HEAD» 5.x-1.x-dev
Status:fixed» active

Should be in the 5.x dev version.

#6

bastnic - June 3, 2008 - 21:29

It seems to be integrate in the 5.x-1.x-dev. Thanks.

#7

dman - August 30, 2009 - 10:38
Status:active» closed

Issue cleanup. Looks old and fixed

 
 

Drupal is a registered trademark of Dries Buytaert.