From cff577fb83a6351b274db166793dd290b6f1c899 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 20 May 2014 13:57:28 +0000 Subject: [PATCH] ShowController: don't show a random service When you chose a host and clicked on "Services" the GUI used to show a random (the first) service. Made no sense, should work as expected right now. --- modules/monitoring/application/controllers/ShowController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/monitoring/application/controllers/ShowController.php b/modules/monitoring/application/controllers/ShowController.php index b695389a4..e8f3dd1b4 100644 --- a/modules/monitoring/application/controllers/ShowController.php +++ b/modules/monitoring/application/controllers/ShowController.php @@ -58,8 +58,7 @@ class Monitoring_ShowController extends Controller { if ($this->getRequest()->getActionName() === 'host') { $this->view->object = new Host($this->getRequest()); - } elseif ($this->getRequest()->getActionName() === 'service' - || $this->getRequest()->getActionName() === 'services' ) { + } elseif ($this->getRequest()->getActionName() === 'service') { $this->view->object = new Service($this->getRequest()); } else { // TODO: Well... this could be done better