lib: Fix wrong count for queries having a group by clause

fixes #9828
This commit is contained in:
Eric Lippmann 2015-08-04 16:25:34 +02:00
parent 802e18ac47
commit 064e821383
1 changed files with 0 additions and 4 deletions

View File

@ -333,10 +333,6 @@ class DbQuery extends SimpleQuery
{
// TODO: there may be situations where we should clone the "select"
$count = $this->dbSelect();
$group = $this->getGroup();
if ($group) {
$count->group($group);
}
$this->applyFilterSql($count);
if ($this->useSubqueryCount || $this->group) {
$count->columns($this->columns);