mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
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…
x
Reference in New Issue
Block a user