Do not import non-integer sections
agentrickard - October 16, 2009 - 16:35
| Project: | Joomla to Drupal |
| Version: | 6.x-1.0-alpha3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
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.

#1
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.