Automatically handle converting+adding text categories without explicit translation

This commit is contained in:
Nathan Gray 2011-03-09 18:21:51 +00:00
parent e0d509ca3a
commit fbc9aa8abb

View File

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