From 5246d59f21fbc7b97b8369607e78f2ca64e07bda Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 14 Feb 2017 09:07:25 -0700 Subject: [PATCH] Add ability to handle groups named in the format 'Group ' (no comma, Group first) when importing. --- importexport/inc/class.importexport_helper_functions.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/importexport/inc/class.importexport_helper_functions.inc.php b/importexport/inc/class.importexport_helper_functions.inc.php index 57d66b0a0e..492b93b257 100755 --- a/importexport/inc/class.importexport_helper_functions.inc.php +++ b/importexport/inc/class.importexport_helper_functions.inc.php @@ -169,6 +169,11 @@ class importexport_helper_functions { { $account_lid = trim(substr(trim($account_lid), 0, -strlen(lang('Group')))); } + // Group (no comma) + else if(strpos($account_lid, lang('Group')) === 0) + { + $account_lid = trim(substr(trim($account_lid), strlen(lang('Group')))); + } if ( $account_id = $GLOBALS['egw']->accounts->name2id( $account_lid )) { $account_ids[] = $account_id;