From 051e11fe0917e808d843abf4cfc77c9de6a9898d Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 4 Mar 2011 16:57:25 +0000 Subject: [PATCH] Automatically handle converting+adding text categories without explicit translation --- addressbook/inc/class.addressbook_import_contacts_csv.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php index ed8b634114..8e0d10fafb 100644 --- a/addressbook/inc/class.addressbook_import_contacts_csv.inc.php +++ b/addressbook/inc/class.addressbook_import_contacts_csv.inc.php @@ -164,6 +164,9 @@ class addressbook_import_contacts_csv implements importexport_iface_import_plugi $record['owner'] = $_definition->plugin_options['contact_owner']; } + // Automatically handle text categories without explicit translation + $record['cat_id'] = importexport_helper_functions::cat_name2id($record['cat_id']); + if ( $_definition->plugin_options['conditions'] ) { foreach ( $_definition->plugin_options['conditions'] as $condition ) { switch ( $condition['type'] ) {