mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
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') {
|
if ($this->getRequest()->getActionName() === 'host') {
|
||||||
$this->view->object = new Host($this->getRequest());
|
$this->view->object = new Host($this->getRequest());
|
||||||
} elseif ($this->getRequest()->getActionName() === 'service'
|
} elseif ($this->getRequest()->getActionName() === 'service') {
|
||||||
|| $this->getRequest()->getActionName() === 'services' ) {
|
|
||||||
$this->view->object = new Service($this->getRequest());
|
$this->view->object = new Service($this->getRequest());
|
||||||
} else {
|
} else {
|
||||||
// TODO: Well... this could be done better
|
// TODO: Well... this could be done better
|
||||||
|
Loading…
x
Reference in New Issue
Block a user