StatusQuery: fix join on wrong alias

Looks like a copy & paste error, resulted in hosts been shown multiple
times.

fixes #8699
This commit is contained in:
Thomas Gelf 2015-03-12 09:46:38 +01:00
parent 792a67c439
commit 16ca8d0654
1 changed files with 2 additions and 2 deletions

View File

@ -589,7 +589,7 @@ SQL;
{ {
$this->select->joinLeft( $this->select->joinLeft(
array('hlcd' => $this->getLastCommentSubQuery(2, 'last_downtime_data')), array('hlcd' => $this->getLastCommentSubQuery(2, 'last_downtime_data')),
'hlcg.object_id = hs.host_object_id', 'hlcd.object_id = hs.host_object_id',
array() array()
); );
} }
@ -601,7 +601,7 @@ SQL;
{ {
$this->select->joinLeft( $this->select->joinLeft(
array('hlcf' => $this->getLastCommentSubQuery(3, 'last_flapping_data')), array('hlcf' => $this->getLastCommentSubQuery(3, 'last_flapping_data')),
'hlcg.object_id = hs.host_object_id', 'hlcf.object_id = hs.host_object_id',
array() array()
); );
} }