forked from extern/egroupware
Add ability to handle groups named in the format 'Group <name>' (no comma, Group first) when importing.
This commit is contained in:
parent
23384d14f1
commit
5246d59f21
@ -169,6 +169,11 @@ class importexport_helper_functions {
|
||||
{
|
||||
$account_lid = trim(substr(trim($account_lid), 0, -strlen(lang('Group'))));
|
||||
}
|
||||
// Group <name> (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;
|
||||
|
Loading…
Reference in New Issue
Block a user