mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Merge branch '3.x' into 4.x
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user