mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
SortBox::handleRequest(): check whether $this->query !== null
refs #9220
This commit is contained in:
parent
dd58f1466c
commit
afa0dc0956
@ -109,12 +109,14 @@ class SortBox extends AbstractWidget
|
||||
|
||||
public function handleRequest(Request $request = null)
|
||||
{
|
||||
if ($this->query !== null) {
|
||||
if ($request === null) {
|
||||
$request = Icinga::app()->getFrontController()->getRequest();
|
||||
}
|
||||
if ($sort = $request->getParam('sort')) {
|
||||
$this->query->order($sort, $request->getParam('dir'));
|
||||
}
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user