mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
"fix for bug #584: Problem when sorting accounts in the account-selection popup"
This commit is contained in:
parent
53d0d3d21f
commit
892c5f8f83
@ -320,6 +320,7 @@ class accounts_backend
|
|||||||
*/
|
*/
|
||||||
function get_list($_type='both', $start = null,$sort = '', $order = '', $query = '', $offset = null, $query_type='')
|
function get_list($_type='both', $start = null,$sort = '', $order = '', $query = '', $offset = null, $query_type='')
|
||||||
{
|
{
|
||||||
|
//echo "<p>accounts_sql($_type,$start,$sort,$order,$query,$offset,$query_type)</p>\n";
|
||||||
if (!is_object($GLOBALS['egw']->contacts))
|
if (!is_object($GLOBALS['egw']->contacts))
|
||||||
{
|
{
|
||||||
$GLOBALS['egw']->contacts =& CreateObject('phpgwapi.contacts');
|
$GLOBALS['egw']->contacts =& CreateObject('phpgwapi.contacts');
|
||||||
@ -329,7 +330,7 @@ class accounts_backend
|
|||||||
'account_lastname' => 'n_family',
|
'account_lastname' => 'n_family',
|
||||||
'account_email' => 'contact_email',
|
'account_email' => 'contact_email',
|
||||||
);
|
);
|
||||||
if (isset($order2contact[$order])) $order = $account2contact[$order];
|
if (isset($order2contact[$order])) $order = $order2contact[$order];
|
||||||
if ($sort) $order .= ' '.$sort;
|
if ($sort) $order .= ' '.$sort;
|
||||||
|
|
||||||
switch($_type)
|
switch($_type)
|
||||||
|
Loading…
Reference in New Issue
Block a user