mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Automatically handle converting+adding text categories without explicit translation
This commit is contained in:
parent
bd03ec245f
commit
e0d509ca3a
@ -169,6 +169,9 @@ class calendar_import_csv implements importexport_iface_import_plugin {
|
||||
$record['owner'] = $_definition->plugin_options['owner'];
|
||||
}
|
||||
|
||||
// Automatically handle text categories without explicit translation
|
||||
$record['cat_id'] = importexport_helper_functions::cat_name2id($record['cat_id']);
|
||||
|
||||
if ($record['participants'] && !is_array($record['participants'])) {
|
||||
// Importing participants in human friendly format
|
||||
preg_match_all('/(([^(]+?)( \(([0-9]+)\))? \((.+?)\) ([^,]+)),?/',$record['participants'],$participants);
|
||||
|
Loading…
Reference in New Issue
Block a user