Use correct filters in multi-object command views
This commit is contained in:
parent
ca33e71f2d
commit
daa23a4edd
|
@ -32,6 +32,7 @@ class HostsController extends Controller
|
|||
$this->applyRestriction('monitoring/filter/objects', $hostList);
|
||||
$hostList->addFilter(Filter::fromQueryString((string) $this->params));
|
||||
$this->hostList = $hostList;
|
||||
$this->view->baseFilter = $this->hostList->getFilter();
|
||||
$this->getTabs()->add(
|
||||
'show',
|
||||
array(
|
||||
|
@ -152,7 +153,6 @@ class HostsController extends Controller
|
|||
->toQueryString()
|
||||
);
|
||||
$this->view->commentsLink = Url::fromRequest()->setPath('monitoring/list/comments');
|
||||
$this->view->baseFilter = $this->hostList->getFilter();
|
||||
$this->view->sendCustomNotificationLink = Url::fromRequest()->setPath('monitoring/hosts/send-custom-notification');
|
||||
}
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ class ServicesController extends Controller
|
|||
(string) $this->params->without(array('service_problem', 'service_handled', 'view'))
|
||||
));
|
||||
$this->serviceList = $serviceList;
|
||||
$this->view->baseFilter = $this->serviceList->getFilter();
|
||||
$this->view->listAllLink = Url::fromRequest()->setPath('monitoring/list/services');
|
||||
$this->getTabs()->add(
|
||||
'show',
|
||||
|
@ -163,7 +164,6 @@ class ServicesController extends Controller
|
|||
);
|
||||
$this->view->commentsLink = Url::fromRequest()
|
||||
->setPath('monitoring/list/comments');
|
||||
$this->view->baseFilter = $this->serviceList->getFilter();
|
||||
$this->view->sendCustomNotificationLink = Url::fromRequest()->setPath(
|
||||
'monitoring/services/send-custom-notification'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue