diff --git a/etemplate/inc/class.etemplate_widget_menupopup.inc.php b/etemplate/inc/class.etemplate_widget_menupopup.inc.php index cd1def65ee..997be6b83e 100644 --- a/etemplate/inc/class.etemplate_widget_menupopup.inc.php +++ b/etemplate/inc/class.etemplate_widget_menupopup.inc.php @@ -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)