From fbc9aa8abb0461b9922e3abea283406a4e9e0941 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 9 Mar 2011 18:21:51 +0000 Subject: [PATCH] Automatically handle converting+adding text categories without explicit translation --- infolog/inc/class.infolog_import_infologs_csv.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infolog/inc/class.infolog_import_infologs_csv.inc.php b/infolog/inc/class.infolog_import_infologs_csv.inc.php index 2b66179e59..5dbb03d8b1 100644 --- a/infolog/inc/class.infolog_import_infologs_csv.inc.php +++ b/infolog/inc/class.infolog_import_infologs_csv.inc.php @@ -168,6 +168,9 @@ class infolog_import_infologs_csv implements importexport_iface_import_plugin { $record['info_owner'] = $_definition->plugin_options['record_owner']; } + // Automatically handle text categories without explicit translation + $record['cat_id'] = importexport_helper_functions::cat_name2id($record['cat_id']); + // Special values if ($record['addressbook'] && !is_numeric($record['addressbook'])) {