From 58c630b7eff347cb8424830ae5c998087d9054e7 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 29 Sep 2015 23:04:47 +0200 Subject: [PATCH] monitoring: Fix renamed index in the HostdowntimeendhistoryQuery refs #9956 --- .../Backend/Ido/Query/HostdowntimeendhistoryQuery.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostdowntimeendhistoryQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostdowntimeendhistoryQuery.php index 8ef831f80..f54033f76 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostdowntimeendhistoryQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostdowntimeendhistoryQuery.php @@ -29,11 +29,11 @@ class HostdowntimeendhistoryQuery extends HostdowntimestarthistoryQuery { parent::joinBaseTables(true); $this->select->where("hdh.actual_end_time > '1970-01-02 00:00:00'"); - $this->columnMap['history']['type'] = "('dt_end')"; - $this->columnMap['history']['timestamp'] = str_replace( + $this->columnMap['downtimehistory']['type'] = "('dt_end')"; + $this->columnMap['downtimehistory']['timestamp'] = str_replace( 'actual_start_time', 'actual_end_time', - $this->columnMap['history']['timestamp'] + $this->columnMap['downtimehistory']['timestamp'] ); } }