From c34aa3a335c2b43b33adfcf645457903a3897a82 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 20 Jan 2012 15:54:10 +0000 Subject: [PATCH] Fix importing responsible, when there are more than 1 user responsible --- infolog/inc/class.infolog_import_infologs_csv.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infolog/inc/class.infolog_import_infologs_csv.inc.php b/infolog/inc/class.infolog_import_infologs_csv.inc.php index 1fd722cb10..286359a565 100644 --- a/infolog/inc/class.infolog_import_infologs_csv.inc.php +++ b/infolog/inc/class.infolog_import_infologs_csv.inc.php @@ -198,6 +198,10 @@ class infolog_import_infologs_csv implements importexport_iface_import_plugin { $record['info_owner'] = $_definition->plugin_options['record_owner']; } if (!isset($record['info_owner'])) $record['info_owner'] = $GLOBALS['egw_info']['user']['account_id']; + + // Responsible has to be an array + $record['info_responsible'] = $record['info_responsible'] ? explode(',',$record['info_responsible']) : 0; + // Special values if ($record['addressbook'] && !is_numeric($record['addressbook'])) {