SortBox::handleRequest(): set query order direction to asc if it's not given
This commit is contained in:
parent
ca79b020e3
commit
59753acece
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue