mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
monitoring: Use grouping instead of distinct in the service comment query
refs #9009
This commit is contained in:
parent
2539e51549
commit
c3c1993870
@ -106,7 +106,7 @@ class ServicecommentQuery extends IdoQuery
|
|||||||
'hgo.objecttype_id = ?',
|
'hgo.objecttype_id = ?',
|
||||||
3
|
3
|
||||||
);
|
);
|
||||||
$this->distinct();
|
$this->group(array('so.name2', 'so.name1'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -160,7 +160,7 @@ class ServicecommentQuery extends IdoQuery
|
|||||||
'sgo.objecttype_id = ?',
|
'sgo.objecttype_id = ?',
|
||||||
4
|
4
|
||||||
);
|
);
|
||||||
$this->distinct();
|
$this->group(array('so.name2', 'so.name1'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user