$objects = ctools_export_load_object('taxonomy_export', 'all', array($machine_name));
  $taxonomy_export = current($objects);

So it loads all taxonomies and selects the first. Correct behaviour would be to select only the taxonomy matching the $machine_name.

  $objects = ctools_export_load_object('taxonomy_export', 'names', array($machine_name));
  $taxonomy_export = current($objects);
CommentFileSizeAuthor
#1 taxonomy_export.module.860142.patch857 bytesjaydub
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jaydub’s picture

Status: Active » Needs review
FileSize
857 bytes

I ran into this as well. I attached the above as a patch

jonathan_hunt’s picture

This patch worked for me, thanks.

James Andres’s picture

Status: Needs review » Closed (duplicate)