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'] ) {