allways add "account_lid" to order of accounts, as groups only have that, also at ASC/DESC sort to each order criteria

This commit is contained in:
Ralf Becker 2014-01-21 17:15:08 +00:00
parent bbfed65c0b
commit ad04ba821d

View File

@ -392,7 +392,12 @@ class accounts_sql
common::display_fullname('account_lid','account_firstname','account_lastname'))),$order);
}
$order = str_replace(array_keys($order2contact),array_values($order2contact),$order);
if ($sort) $order .= ' '.$sort;
// allways add 'account_lid', as it is only valid one for groups
if (strpos($order, 'account_lid') === false)
{
$order .= ',account_lid';
}
if ($sort) $order = implode(' '.$sort.',', explode(',', $order)).' '.$sort;
switch($_type)
{