Use `host_name' to decide whether to show a service's host or not
`host' might match multiple hosts even if no * is being part of the filter. refs #8613
This commit is contained in:
parent
cee189a5fc
commit
7d984665d6
|
@ -170,10 +170,8 @@ class Monitoring_ListController extends Controller
|
|||
|
||||
$this->addTitleTab('services', $this->translate('Services'), $this->translate('List services'));
|
||||
$this->view->showHost = true;
|
||||
if ($host = $this->_getParam('host')) {
|
||||
if (strpos($host, '*') === false) {
|
||||
$this->view->showHost = false;
|
||||
}
|
||||
if (strpos($this->params->get('host_name', '*'), '*') === false) {
|
||||
$this->view->showHost = false;
|
||||
}
|
||||
$this->setAutorefreshInterval(10);
|
||||
|
||||
|
|
Loading…
Reference in New Issue