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:
parent
792a67c439
commit
16ca8d0654
|
@ -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()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue