mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Automatically handle converting+adding text categories without explicit translation
This commit is contained in:
parent
2d7a2c5d32
commit
8104bd46c4
@ -163,6 +163,9 @@ class timesheet_import_csv implements importexport_iface_import_plugin {
|
||||
// don't import empty records
|
||||
if( count( array_unique( $record ) ) < 2 ) continue;
|
||||
|
||||
// Automatically handle text categories without explicit translation
|
||||
$record['cat_id'] = importexport_helper_functions::cat_name2id($record['cat_id']);
|
||||
|
||||
// Set creator, unless it's supposed to come from CSV file
|
||||
if($_definition->plugin_options['creator_from_csv']) {
|
||||
if(!is_numeric($record['ts_owner'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user