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.
This commit is contained in:
Thomas Gelf 2014-05-20 13:57:28 +00:00
parent 8f77ce607e
commit cff577fb83
1 changed files with 1 additions and 2 deletions

View File

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