mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Fix some group selections showing accounts instead
This commit is contained in:
parent
327e648c40
commit
9b84be6d01
@ -489,9 +489,9 @@ class etemplate_widget_menupopup extends etemplate_widget
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if($type == 'owngroups' || $select_pref == 'groupmembers')
|
||||
{
|
||||
$type = 'groups';
|
||||
$owngroups = true;
|
||||
foreach($GLOBALS['egw']->accounts->membership() as $group) $mygroups[] = $group['account_id'];
|
||||
}
|
||||
@ -513,6 +513,10 @@ class etemplate_widget_menupopup extends etemplate_widget
|
||||
'order' => 'account_fullname', // order according to pref of how to display accounts
|
||||
));
|
||||
}
|
||||
else if ($type == 'groups')
|
||||
{
|
||||
$accs = $GLOBALS['egw']->accounts->get_list($type);
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach($mygroups as $group)
|
||||
|
Loading…
Reference in New Issue
Block a user