mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 00:34:03 +02:00
parent
307787cfb7
commit
e75de8cf60
@ -34,8 +34,21 @@ class Monitoring_ListController extends Controller
|
|||||||
|
|
||||||
protected function hasBetterUrl()
|
protected function hasBetterUrl()
|
||||||
{
|
{
|
||||||
|
$request = $this->getRequest();
|
||||||
$url = clone($this->url);
|
$url = clone($this->url);
|
||||||
|
|
||||||
if ($this->getRequest()->isPost()) {
|
if ($this->getRequest()->isPost()) {
|
||||||
|
|
||||||
|
if ($request->getPost('sort')) {
|
||||||
|
$url->setParam('sort', $request->getPost('sort'));
|
||||||
|
if ($request->getPost('dir')) {
|
||||||
|
$url->setParam('dir', $request->getPost('dir'));
|
||||||
|
} else {
|
||||||
|
$url->removeParam('dir');
|
||||||
|
}
|
||||||
|
return $url;
|
||||||
|
}
|
||||||
|
|
||||||
$q = $this->getRequest()->getPost('q');
|
$q = $this->getRequest()->getPost('q');
|
||||||
} else {
|
} else {
|
||||||
$q = $url->shift('q');
|
$q = $url->shift('q');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user