Exporting nodes tagged by taxonomy terms was giving me trouble. Turns out that the taxonomy array generated by node_load() does not work well with node_save(). This patch rewrites the $node->taxonomy array in an export friendly way.

CommentFileSizeAuthor
export.pages_.inc_.patch737 bytesJames Andres

Comments

danielb’s picture

Do you know if this would be the same in drupal 5 at all?

James Andres’s picture

Didn't test in 5.x. Off the top of my head I'd say yes because the relevant, bottom, part of taxonomy_node_save() is the same in 5.x and 6.x.

http://api.drupal.org/api/function/taxonomy_node_save/5 versus http://api.drupal.org/api/function/taxonomy_node_save/6

danielb’s picture

I've added this to the D5 because I was working on it, I'll chuck it into 6 soon.

danielb’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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