Fixed problem with part tables that the wrong number of parts (and therefore pages) were displayed.

This hopefully does not break anything else.
This commit is contained in:
Jan Böhmer 2023-03-05 00:57:01 +01:00
parent 222e76ce47
commit c27b02512f
2 changed files with 56 additions and 1 deletions

View file

@ -22,6 +22,7 @@ declare(strict_types=1);
namespace App\DataTables;
use App\DataTables\Adapters\CustomFetchJoinORMAdapter;
use App\DataTables\Column\EntityColumn;
use App\DataTables\Column\IconLinkColumn;
use App\DataTables\Column\LocaleDateTimeColumn;
@ -281,7 +282,7 @@ final class PartsDataTable implements DataTableTypeInterface
])
->addOrderBy('name')
->createAdapter(FetchJoinORMAdapter::class, [
->createAdapter(CustomFetchJoinORMAdapter::class, [
'simple_total_query' => true,
'query' => function (QueryBuilder $builder): void {
$this->getQuery($builder);