Fix some group selections showing accounts instead

This commit is contained in:
Nathan Gray 2014-02-19 21:54:48 +00:00
parent 327e648c40
commit 9b84be6d01

View File

@ -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)