mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Pass optional parent category ID when creating new sub-categories
This commit is contained in:
parent
66f120ff2e
commit
8235f32c30
@ -187,7 +187,7 @@ class addressbook_import_contacts_csv implements importexport_iface_import_plugi
|
||||
$more_categories[] = $cat_id;
|
||||
} else {
|
||||
// Text categories
|
||||
$more_categories = array_merge($more_categories, importexport_helper_functions::cat_name2id(is_array($record[$field_name]) ? $record[$field_name] : explode(',',$record[$field_name])));
|
||||
$more_categories = array_merge($more_categories, importexport_helper_functions::cat_name2id(is_array($record[$field_name]) ? $record[$field_name] : explode(',',$record[$field_name]), $cat_id));
|
||||
}
|
||||
}
|
||||
if(count($more_categories) > 0) $record['cat_id'] = array_merge(is_array($record['cat_id']) ? $record['cat_id'] : explode(',',$record['cat_id']), $more_categories);
|
||||
|
Loading…
Reference in New Issue
Block a user