It may be that I am doing an import from an old Joomla version, but its {categories}.section column contains some non-integers (like com_glossary).

These do not map to {sections} and create term entries with vid = 0. This patch skips those entries.

CommentFileSizeAuthor
#1 606556-sections.patch1.02 KBagentrickard

Comments

agentrickard’s picture

StatusFileSize
new1.02 KB

The patch also moves the $section_vocabulary_map[$section->id] = $vocabulary->vid; routine out of the drupal_write_record loop, so it is present in either case.

malclocke’s picture

Status: Needs review » Fixed

Thanks agentrickard. Patch applied to 6.x branch.

Status: Fixed » Closed (fixed)

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