Added the category code to the new filters area. gh-378 Update the direction default the descending.

This commit is contained in:
2020-11-30 17:30:10 +02:00
parent f20039b390
commit 3324576c95
32 changed files with 57 additions and 33 deletions

View File

@ -167,7 +167,7 @@ class ComponentbuilderModelAdmins_fields extends JModelList
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'a.id');
$orderDirn = $this->state->get('list.direction', 'asc');
$orderDirn = $this->state->get('list.direction', 'desc');
if ($orderCol != '')
{
$query->order($db->escape($orderCol . ' ' . $orderDirn));