mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 00:34:03 +02:00
parent
8187135564
commit
9a6e3a7042
@ -35,7 +35,7 @@ class Monitoring_DowntimeController extends Controller
|
|||||||
{
|
{
|
||||||
$downtimeId = $this->params->getRequired('downtime_id');
|
$downtimeId = $this->params->getRequired('downtime_id');
|
||||||
|
|
||||||
$this->downtime = $this->backend->select()->from('downtime', array(
|
$query = $this->backend->select()->from('downtime', array(
|
||||||
'id' => 'downtime_internal_id',
|
'id' => 'downtime_internal_id',
|
||||||
'objecttype' => 'object_type',
|
'objecttype' => 'object_type',
|
||||||
'comment' => 'downtime_comment',
|
'comment' => 'downtime_comment',
|
||||||
@ -55,8 +55,10 @@ class Monitoring_DowntimeController extends Controller
|
|||||||
'service_description',
|
'service_description',
|
||||||
'host_display_name',
|
'host_display_name',
|
||||||
'service_display_name'
|
'service_display_name'
|
||||||
))->where('downtime_internal_id', $downtimeId)->getQuery()->fetchRow();
|
))->where('downtime_internal_id', $downtimeId);
|
||||||
|
$this->applyRestriction('monitoring/filter/objects', $query);
|
||||||
|
|
||||||
|
$this->downtime = $query->getQuery()->fetchRow();
|
||||||
if ($this->downtime === false) {
|
if ($this->downtime === false) {
|
||||||
$this->httpNotFound($this->translate('Downtime not found'));
|
$this->httpNotFound($this->translate('Downtime not found'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user