I was testing different import/export formats and when trying "First level parents/children", the exported CSV file resulted in something like this:
term-name-1, 123, 124
term-name-2, 123
...

instead of printing the term names, the term ids of the parents or children got returned. This is because of API changes in taxonomy_get_parents and taxonomy_get_children (#870528: taxonomy_get_parents(), taxonomy_get_children(), and taxonomy_get_tree() do not return a full term objects) and therefore broken taxonomy_csv_term_get_parents_names and taxonomy_csv_term_get_children_names functions.

The uploaded patch fixes this issue.

CommentFileSizeAuthor
taxonomy_csv_names.patch968 bytesmh86

Comments

Daniel_KM’s picture

Status: Needs review » Closed (fixed)

Hi,

Thanks for your patch. It has been committed. I have to add an automatic simply test, but time lacks.

Sincerely,

Daniel Berthereau
Knowledge manager