mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 05:49:03 +01:00
"missing order account_fullname for sql"
This commit is contained in:
parent
6f493cbde8
commit
ce4176ef9a
@ -328,7 +328,14 @@ class accounts_sql
|
|||||||
'account_lastname' => 'n_family',
|
'account_lastname' => 'n_family',
|
||||||
'account_email' => 'contact_email',
|
'account_email' => 'contact_email',
|
||||||
);
|
);
|
||||||
if (isset($order2contact[$order])) $order = $order2contact[$order];
|
|
||||||
|
// fetch order of account_fullname from common::display_fullname
|
||||||
|
if (strpos($order,'account_fullname') !== false)
|
||||||
|
{
|
||||||
|
$order = str_replace('account_fullname',preg_replace('/[ ,]+/',',',str_replace(array('[',']'),'',
|
||||||
|
common::display_fullname('account_lid','account_firstname','account_lastname'))),$order);
|
||||||
|
}
|
||||||
|
$order = str_replace(array_keys($order2contact),array_values($order2contact),$order);
|
||||||
if ($sort) $order .= ' '.$sort;
|
if ($sort) $order .= ' '.$sort;
|
||||||
|
|
||||||
switch($_type)
|
switch($_type)
|
||||||
|
Loading…
Reference in New Issue
Block a user