mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
Add existing GROUPBYs to count queries
This commit is contained in:
parent
0e34001568
commit
94f8597271
@ -267,7 +267,9 @@ class DbQuery extends SimpleQuery
|
|||||||
{
|
{
|
||||||
// TODO: there may be situations where we should clone the "select"
|
// TODO: there may be situations where we should clone the "select"
|
||||||
$count = $this->dbSelect();
|
$count = $this->dbSelect();
|
||||||
|
if ($this->group) {
|
||||||
|
$count->group($this->group);
|
||||||
|
}
|
||||||
$this->applyFilterSql($count);
|
$this->applyFilterSql($count);
|
||||||
if ($this->useSubqueryCount || $this->group) {
|
if ($this->useSubqueryCount || $this->group) {
|
||||||
$count->columns($this->columns);
|
$count->columns($this->columns);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user