Merge branch '3.x' into 4.x

This commit is contained in:
Dan Harrin
2025-09-24 17:22:48 +01:00
@@ -153,6 +153,11 @@ trait CanExportRecords
$records = $action instanceof ExportBulkAction ? $action->getIndividuallyAuthorizedSelectedRecords() : null;
$totalRows = $records ? $records->count() : $query->toBase()->getCountForPagination();
if ((! $records) && $query->getLimit()) {
$totalRows = min($totalRows, $query->getLimit());
}
$maxRows = $action->getMaxRows() ?? $totalRows;
if ($maxRows < $totalRows) {