Automatically handle converting+adding text categories without explicit translation

This commit is contained in:
Nathan Gray 2011-03-04 16:57:25 +00:00
parent 9d44d57a52
commit 051e11fe09

View File

@ -164,6 +164,9 @@ class addressbook_import_contacts_csv implements importexport_iface_import_plugi
$record['owner'] = $_definition->plugin_options['contact_owner']; $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'] ) { if ( $_definition->plugin_options['conditions'] ) {
foreach ( $_definition->plugin_options['conditions'] as $condition ) { foreach ( $_definition->plugin_options['conditions'] as $condition ) {
switch ( $condition['type'] ) { switch ( $condition['type'] ) {