mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
add canceled downtimes to the history, if they were started (#5184)
fixes https://github.com/Icinga/icingaweb2/issues/5176
This commit is contained in:
parent
d6881e0273
commit
dba77bce57
@ -30,7 +30,7 @@ class HostdowntimeendhistoryQuery extends HostdowntimestarthistoryQuery
|
|||||||
{
|
{
|
||||||
parent::joinBaseTables(true);
|
parent::joinBaseTables(true);
|
||||||
$this->select->where(
|
$this->select->where(
|
||||||
"hdh.actual_end_time > '1970-01-02 00:00:00' AND hdh.was_started = 1 AND hdh.was_cancelled = 0"
|
"hdh.actual_end_time > '1970-01-02 00:00:00' AND hdh.was_started = 1"
|
||||||
);
|
);
|
||||||
$this->columnMap['downtimehistory']['type'] = "('dt_end')";
|
$this->columnMap['downtimehistory']['type'] = "('dt_end')";
|
||||||
$this->columnMap['downtimehistory']['timestamp'] = str_replace(
|
$this->columnMap['downtimehistory']['timestamp'] = str_replace(
|
||||||
|
@ -103,7 +103,7 @@ class HostdowntimestarthistoryQuery extends IdoQuery
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
$this->select->where(
|
$this->select->where(
|
||||||
"hdh.was_started = 1 AND hdh.was_cancelled = 0"
|
"hdh.was_started = 1"
|
||||||
);
|
);
|
||||||
$this->joinedVirtualTables['downtimehistory'] = true;
|
$this->joinedVirtualTables['downtimehistory'] = true;
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ class ServicedowntimeendhistoryQuery extends ServicedowntimestarthistoryQuery
|
|||||||
{
|
{
|
||||||
parent::joinBaseTables(true);
|
parent::joinBaseTables(true);
|
||||||
$this->select->where(
|
$this->select->where(
|
||||||
"sdh.actual_end_time > '1970-01-02 00:00:00' AND sdh.was_started = 1 AND sdh.was_cancelled = 0"
|
"sdh.actual_end_time > '1970-01-02 00:00:00' AND sdh.was_started = 1"
|
||||||
);
|
);
|
||||||
$this->columnMap['downtimehistory']['type'] = "('dt_end')";
|
$this->columnMap['downtimehistory']['type'] = "('dt_end')";
|
||||||
$this->columnMap['downtimehistory']['timestamp'] = str_replace(
|
$this->columnMap['downtimehistory']['timestamp'] = str_replace(
|
||||||
|
@ -104,7 +104,7 @@ class ServicedowntimestarthistoryQuery extends IdoQuery
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
$this->select->where(
|
$this->select->where(
|
||||||
"sdh.was_started = 1 AND sdh.was_cancelled = 0"
|
"sdh.was_started = 1"
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->joinedVirtualTables['downtimehistory'] = true;
|
$this->joinedVirtualTables['downtimehistory'] = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user