From b168cf878dbd79ab9466a34b5431d5f01e8dd0a4 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 22 Oct 2013 17:05:25 +0200 Subject: [PATCH] Fix type specification in DowntimestarthistoryQuery refs #4190 --- library/Icinga/Data/Db/TreeToSqlParser.php | 4 ++-- .../Backend/Ido/Query/DowntimestarthistoryQuery.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/Icinga/Data/Db/TreeToSqlParser.php b/library/Icinga/Data/Db/TreeToSqlParser.php index b1d482ef7..aed6c0f4d 100644 --- a/library/Icinga/Data/Db/TreeToSqlParser.php +++ b/library/Icinga/Data/Db/TreeToSqlParser.php @@ -41,7 +41,7 @@ class TreeToSqlParser /** * The query class to use as the base for converting * - * @var AbstractQuery + * @var BaseQuery */ private $query; @@ -54,7 +54,7 @@ class TreeToSqlParser /** * Create a new converter from this query * - * @param AbstractQuery $query The query to use for conversion + * @param BaseQuery $query The query to use for conversion */ public function __construct(BaseQuery $query) { diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php index f85740e9b..af68d66b0 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimestarthistoryQuery.php @@ -10,7 +10,7 @@ class DowntimestarthistoryQuery extends IdoQuery 'timestamp' => 'UNIX_TIMESTAMP(actual_start_time)', 'raw_timestamp' => 'actual_start_time', 'object_id' => 'object_id', - 'type' => "('dt_end')", + 'type' => "('dt_start')", 'state' => '(NULL)', 'state_type' => '(NULL)', 'output' => "('[' || author_name || '] ' || comment_data)",