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:
Johannes Meyer 2015-04-09 11:12:09 +02:00
parent cee189a5fc
commit 7d984665d6
1 changed files with 2 additions and 4 deletions

View File

@ -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);