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
ad253a2608
commit
f7ce519750
@ -169,6 +169,11 @@ class importexport_helper_functions {
|
|||||||
{
|
{
|
||||||
$account_lid = trim(substr(trim($account_lid), 0, -strlen(lang('Group'))));
|
$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 )) {
|
if ( $account_id = $GLOBALS['egw']->accounts->name2id( $account_lid )) {
|
||||||
$account_ids[] = $account_id;
|
$account_ids[] = $account_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user