From 7d984665d672f3c8be11eb23a7fc66088b2bc233 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 9 Apr 2015 11:12:09 +0200 Subject: [PATCH] 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 --- .../monitoring/application/controllers/ListController.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index 41e27ec45..8a9dc5fa4 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -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);