$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 commentedI ran into this as well. I attached the above as a patch
Comment #2
jonathan_hunt commentedThis patch worked for me, thanks.
Comment #3
James Andres commentedFixed in CVS, duplicate of #785812: $taxonomy_export not set correctly if $objects array contains more than one item