forked from extern/egroupware
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
|
// don't import empty records
|
||||||
if( count( array_unique( $record ) ) < 2 ) continue;
|
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
|
// Set creator, unless it's supposed to come from CSV file
|
||||||
if($_definition->plugin_options['creator_from_csv']) {
|
if($_definition->plugin_options['creator_from_csv']) {
|
||||||
if(!is_numeric($record['ts_owner'])) {
|
if(!is_numeric($record['ts_owner'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user