Fix that the default sort order of a view is not being applied

fixes #6644
This commit is contained in:
Johannes Meyer 2014-07-17 09:17:20 +02:00
parent b23e36aa1a
commit b7f5c8a84d
1 changed files with 1 additions and 3 deletions

View File

@ -530,9 +530,7 @@ class Monitoring_ListController extends Controller
$query->applyFilter($filter);
}
$this->view->filter = $filter;
if ($sort) {
$query->order($sort, $dir);
}
$query->order($sort, $dir);
$this->applyRestrictions($query);
$this->handleFormatRequest($query);
return $query;