Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
$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);
Comment | File | Size | Author |
---|---|---|---|
#1 | taxonomy_export.module.860142.patch | 857 bytes | jaydub |
Comments
Comment #1
jaydub CreditAttribution: jaydub commentedI ran into this as well. I attached the above as a patch
Comment #2
jonathan_hunt CreditAttribution: jonathan_hunt commentedThis patch worked for me, thanks.
Comment #3
James Andres CreditAttribution: James Andres commentedFixed in CVS, duplicate of #785812: $taxonomy_export not set correctly if $objects array contains more than one item