Merge pull request #16274 from MrPunyapal/feat/group-by-support-for-exports

Fix: total rows calculation for group by in CanExportRecords trait
This commit is contained in:
Dan Harrin
2025-05-16 10:22:25 +01:00
committed by GitHub
@@ -130,7 +130,7 @@ trait CanExportRecords
$records = $action instanceof ExportTableBulkAction ? $action->getRecords() : null;
$totalRows = $records ? $records->count() : $query->count();
$totalRows = $records ? $records->count() : $query->toBase()->getCountForPagination();
$maxRows = $action->getMaxRows() ?? $totalRows;
if ($maxRows < $totalRows) {