monitoring: Replace show partials calls to getHost() and getService() with getName()
This commit is contained in:
parent
5cdcf36243
commit
8afdc3db1a
|
@ -10,12 +10,12 @@ if (in_array((int) $object->state, array(0, 99))) {
|
|||
if ($object->getType() === $object::TYPE_HOST) {
|
||||
$ackLink = $this->href(
|
||||
'monitoring/host/acknowledge-problem',
|
||||
array('host' => $object->getHost())
|
||||
array('host' => $object->getName())
|
||||
);
|
||||
} else {
|
||||
$ackLink = $this->href(
|
||||
'monitoring/service/acknowledge-problem',
|
||||
array('host' => $object->getHost(), 'service' => $object->getService())
|
||||
array('host' => $object->getHost()->getName(), 'service' => $object->getName())
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
if ($object->getType() === $object::TYPE_HOST) {
|
||||
$reschedule = $this->href(
|
||||
'monitoring/host/reschedule-check',
|
||||
array('host' => $object->getHost())
|
||||
array('host' => $object->getName())
|
||||
);
|
||||
} else {
|
||||
$reschedule = $this->href(
|
||||
'monitoring/service/reschedule-check',
|
||||
array('host' => $object->getHost(), 'service' => $object->getService())
|
||||
array('host' => $object->getHost()->getName(), 'service' => $object->getName())
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
if ($object->getType() === $object::TYPE_HOST) {
|
||||
$addCommentLink = $this->href(
|
||||
'monitoring/host/add-comment',
|
||||
array('host' => $object->getHost())
|
||||
array('host' => $object->getName())
|
||||
);
|
||||
} else {
|
||||
$addCommentLink = $this->href(
|
||||
'monitoring/service/add-comment',
|
||||
array('host' => $object->getHost(), 'service' => $object->getService())
|
||||
array('host' => $object->getHost()->getName(), 'service' => $object->getName())
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
if ($object->getType() === $object::TYPE_HOST) {
|
||||
$scheduleDowntimeLink = $this->href(
|
||||
'monitoring/host/schedule-downtime',
|
||||
array('host' => $object->getHost())
|
||||
array('host' => $object->getName())
|
||||
);
|
||||
} else {
|
||||
$scheduleDowntimeLink = $this->href(
|
||||
'monitoring/service/schedule-downtime',
|
||||
array('host' => $object->getHost(), 'service' => $object->getService())
|
||||
array('host' => $object->getHost()->getName(), 'service' => $object->getName())
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php $showService = $object->service_description && $tabs->getActiveName() !== 'host' ?>
|
||||
<?php $showService = $object->getType() === $object::TYPE_SERVICE ?>
|
||||
<?php if (!$this->compact): ?>
|
||||
<?= $tabs ?>
|
||||
<?php endif ?>
|
||||
|
|
Loading…
Reference in New Issue