Skip to content

Commit

Permalink
Fix ambiguous column names
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ committed Aug 7, 2020
1 parent 89a4f68 commit ecd5605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions administrator/modules/mod_latest/src/Helper/LatestHelper.php
Expand Up @@ -46,13 +46,13 @@ public static function getList(Registry &$params, ArticlesModel $model)
switch ($params->get('ordering', 'c_dsc'))
{
case 'm_dsc':
$model->setState('list.ordering', 'modified DESC, created');
$model->setState('list.ordering', 'a.modified DESC, a.created');
$model->setState('list.direction', 'DESC');
break;

case 'c_dsc':
default:
$model->setState('list.ordering', 'created');
$model->setState('list.ordering', 'a.created');
$model->setState('list.direction', 'DESC');
break;
}
Expand Down

0 comments on commit ecd5605

Please sign in to comment.