Skip to content

Commit

Permalink
#26986 Fix failing Unit Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lbajsarowicz committed Feb 24, 2020
1 parent 015c5fc commit 18e43a8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,13 @@ protected function _getSelectCountSql(?Select $select = null, $resetLeftJoins =
*/
private function removeEntityIdentifierFromGroupBy(Select $select): void
{
$groupBy = array_filter($select->getPart(Select::GROUP), function ($field) {
$originalGroupBy = $select->getPart(Select::GROUP);

if (!is_array($originalGroupBy)) {
return;
}

$groupBy = array_filter($originalGroupBy, function ($field) {
return false === strpos($field, $this->getIdFieldName());
});

Expand Down

0 comments on commit 18e43a8

Please sign in to comment.