mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-03 11:59:16 +01:00
set primary group to the first group of the user or the Default group, if it is not set
This commit is contained in:
parent
9cb610ad6d
commit
850b3f6b4f
@ -1115,6 +1115,10 @@
|
|||||||
$groups_select .= '>' . $value['account_lid'] . '</option>'."\n";
|
$groups_select .= '>' . $value['account_lid'] . '</option>'."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$userData['account_primary_group'])
|
||||||
|
{
|
||||||
|
$userData['account_primary_group'] = @$userGroups[0]['account_id'] ? @$userGroups[0]['account_id'] : $account->name2id('Default');
|
||||||
|
}
|
||||||
foreach($allGroups as $key => $value)
|
foreach($allGroups as $key => $value)
|
||||||
{
|
{
|
||||||
# print "<br>$key =>";
|
# print "<br>$key =>";
|
||||||
|
Loading…
Reference in New Issue
Block a user