Skip to content

Commit

Permalink
[com_fields] Wrong frontend fields ordering
Browse files Browse the repository at this point in the history
In the frontend the field ordering is reversed, because DESC is default instead of ASC.
  • Loading branch information
hieblmedia committed May 22, 2017
1 parent 96f9ce4 commit 6b1c508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/components/com_fields/models/fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ protected function getListQuery()

// Add the list ordering clause
$listOrdering = $this->state->get('list.ordering', 'a.ordering');
$orderDirn = $this->state->get('list.direction', 'DESC');
$orderDirn = $this->state->get('list.direction', 'ASC');

$query->order($db->escape($listOrdering) . ' ' . $db->escape($orderDirn));

Expand Down

0 comments on commit 6b1c508

Please sign in to comment.