From 9b84be6d019ff0810157044ec0816b784b47481c Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 19 Feb 2014 21:54:48 +0000 Subject: [PATCH] Fix some group selections showing accounts instead --- etemplate/inc/class.etemplate_widget_menupopup.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)