SortBox::handleRequest(): set query order direction to asc if it's not given

This commit is contained in:
Alexander A. Klimov 2015-05-13 14:40:40 +02:00
parent ca79b020e3
commit 59753acece
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class SortBox extends AbstractWidget
$request = Icinga::app()->getFrontController()->getRequest();
}
if ($sort = $request->getParam('sort')) {
$this->query->order($sort, $request->getParam('dir'));
$this->query->order($sort, $request->getParam('dir', 'asc'));
}
}
return $this;