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:
parent
8f77ce607e
commit
cff577fb83
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue