mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 05:24:28 +02:00
Fixed problem with datatable column sorting on postgresql
This commit is contained in:
parent
7ad2fab53d
commit
6d1553e8d8
2 changed files with 25 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue