The machine_name columns only allows 32 characters which breaks the export returning vid = 1 by default. Attached patch increases machine_name storage to 128 characters.

Comments

terrencewood’s picture

StatusFileSize
new641 bytes

Actually, may not be the machine name length after all, although the problem I'm having, I think, is related to not getting a match on the machine name.

In taxonomy_export.module $objects is expected to return a single item array and uses current($objects) to pop the item out into the $taxonomy_export variable. This patch sets the variable explicitly based on the $machine_name param.

terrencewood’s picture

Title: 32 characters is too short for the machine name » $taxonomy_export not set correctly if $objects array contains more than one item

Changing the issue name to reflect the bug

alexiswatson’s picture

Status: Active » Needs review

Reviewed and confirmed patch in #1, using the 2.x dev branch in PHP 5.3.

evNN’s picture

Status: Needs review » Reviewed & tested by the community

Confirmed patch #1 to be working. Using 2.x-dev on PHP 5.3 as well

James Andres’s picture

Status: Reviewed & tested by the community » Fixed

Thanks! Committed to CVS DRUPAL-6--2.

Status: Fixed » Closed (fixed)

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