Skip to content

Commit

Permalink
Another tweak for clearing order by
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Jan 3, 2017
1 parent cf3cc91 commit 8280a79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/com_fabrik/models/list.php
Expand Up @@ -3079,6 +3079,12 @@ public function setOrderByAndDir()
{
$context = 'com_' . $package . '.list' . $id . '.order.' . $postOrderBy;
$this->session->set($context, $postOrderDir);
// if the order is being cleared, remove the query string so list defaults get applied
if ($postOrderDir === '-')
{
$input->set('orderby', '');
$input->set('orderdir', '');
}
}
}

Expand Down

0 comments on commit 8280a79

Please sign in to comment.