Fixed problem with datatable column sorting on postgresql

This commit is contained in:
Jan Böhmer 2024-06-16 22:52:15 +02:00
parent 7ad2fab53d
commit 6d1553e8d8
2 changed files with 25 additions and 2 deletions

View file

@ -129,6 +129,12 @@ class TwoStepORMAdapter extends ORMAdapter
$query->setIdentifierPropertyPath($this->mapFieldToPropertyPath($identifier, $aliases));
}
protected function hasGroupByPart(string $identifier, array $gbList): bool
{
//Always return true, to fix the issue with the count query, when having mutliple group by parts
return true;
}
protected function getCount(QueryBuilder $queryBuilder, $identifier): int
{
if ($this->query_modifier !== null) {