mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
order accounts according to pref of how to display them
This commit is contained in:
parent
3e5e9bf730
commit
646c444670
@ -477,7 +477,10 @@ class etemplate_widget_menupopup extends etemplate_widget
|
|||||||
if($select_pref == 'popup') break;
|
if($select_pref == 'popup') break;
|
||||||
|
|
||||||
$no_lang = True;
|
$no_lang = True;
|
||||||
$accs = $GLOBALS['egw']->accounts->get_list(empty($type) ? 'accounts' : $type); // default is accounts
|
$accs = $GLOBALS['egw']->accounts->search(array(
|
||||||
|
'type' => empty($type) ? 'accounts' : $type, // default is accounts
|
||||||
|
'order' => 'account_fullname', // order according to pref of how to display accounts
|
||||||
|
));
|
||||||
foreach($accs as $acc)
|
foreach($accs as $acc)
|
||||||
{
|
{
|
||||||
if ($acc['account_type'] == 'u')
|
if ($acc['account_type'] == 'u')
|
||||||
|
Loading…
Reference in New Issue
Block a user