Merge branch '1441-Búsqueda-y-ordenación-no-funcionan-correctamente-dev' into 'develop'

Fixed order by remote

See merge request artica/pandorafms!1009
This commit is contained in:
vgilc 2017-11-03 09:04:51 +01:00
commit dbe717c1fc
1 changed files with 2 additions and 2 deletions

View File

@ -201,13 +201,13 @@ switch ($sortField) {
switch ($sort) {
case 'up':
$selectRemoteUp = $selected;
$order = array('field' => 'remote ' . $order_collation,
$order = array('field' => 'remote ',
'field2' => 'nombre ' . $order_collation,
'order' => 'ASC');
break;
case 'down':
$selectRemoteDown = $selected;
$order = array('field' => 'remote ' . $order_collation,
$order = array('field' => 'remote ',
'field2' => 'nombre ' . $order_collation,
'order' => 'DESC');
break;