mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Fixes #5020
This commit is contained in:
parent
59fc7dd745
commit
db9888b1f1
@ -29,7 +29,9 @@ class HostdowntimeendhistoryQuery extends HostdowntimestarthistoryQuery
|
||||
protected function joinBaseTables()
|
||||
{
|
||||
parent::joinBaseTables(true);
|
||||
$this->select->where("hdh.actual_end_time > '1970-01-02 00:00:00'");
|
||||
$this->select->where(
|
||||
"hdh.actual_end_time > '1970-01-02 00:00:00' AND hdh.was_started = 1 AND hdh.was_cancelled = 0"
|
||||
);
|
||||
$this->columnMap['downtimehistory']['type'] = "('dt_end')";
|
||||
$this->columnMap['downtimehistory']['timestamp'] = str_replace(
|
||||
'actual_start_time',
|
||||
|
@ -102,7 +102,9 @@ class HostdowntimestarthistoryQuery extends IdoQuery
|
||||
"hdh.actual_start_time > '1970-01-02 00:00:00'"
|
||||
);
|
||||
}
|
||||
|
||||
$this->select->where(
|
||||
"hdh.was_started = 1 AND hdh.was_cancelled = 0"
|
||||
);
|
||||
$this->joinedVirtualTables['downtimehistory'] = true;
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,9 @@ class ServicedowntimeendhistoryQuery extends ServicedowntimestarthistoryQuery
|
||||
protected function joinBaseTables()
|
||||
{
|
||||
parent::joinBaseTables(true);
|
||||
$this->select->where("sdh.actual_end_time > '1970-01-02 00:00:00'");
|
||||
$this->select->where(
|
||||
"sdh.actual_end_time > '1970-01-02 00:00:00' AND sdh.was_started = 1 AND sdh.was_cancelled = 0"
|
||||
);
|
||||
$this->columnMap['downtimehistory']['type'] = "('dt_end')";
|
||||
$this->columnMap['downtimehistory']['timestamp'] = str_replace(
|
||||
'actual_start_time',
|
||||
|
@ -103,6 +103,9 @@ class ServicedowntimestarthistoryQuery extends IdoQuery
|
||||
"sdh.actual_start_time > '1970-01-02 00:00:00'"
|
||||
);
|
||||
}
|
||||
$this->select->where(
|
||||
"sdh.was_started = 1 AND sdh.was_cancelled = 0"
|
||||
);
|
||||
|
||||
$this->joinedVirtualTables['downtimehistory'] = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user