mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-26 07:02:08 +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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($type == 'owngroups' || $select_pref == 'groupmembers')
|
if($type == 'owngroups' || $select_pref == 'groupmembers')
|
||||||
{
|
{
|
||||||
$type = 'groups';
|
|
||||||
$owngroups = true;
|
$owngroups = true;
|
||||||
foreach($GLOBALS['egw']->accounts->membership() as $group) $mygroups[] = $group['account_id'];
|
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
|
'order' => 'account_fullname', // order according to pref of how to display accounts
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
else if ($type == 'groups')
|
||||||
|
{
|
||||||
|
$accs = $GLOBALS['egw']->accounts->get_list($type);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
foreach($mygroups as $group)
|
foreach($mygroups as $group)
|
||||||
|
Loading…
Reference in New Issue
Block a user