ExportBulkAction don't work with selected record

I've a selection of records in a relationmanager like in the pic. But the export bulk action fails all row but the ultimate selected. This is the function:
ExportBulkAction::make('csv_export')
->label('Export .csv')
->exporter(UserExporter::class)
->formats([
ExportFormat::Csv,
])
->fileDisk('local')
->icon('heroicon-o-document-text')
->color('primary')
->before(function (ModelsResource $resource) {
$resource->deleteOldExports();
})
->deselectRecordsAfterCompletion()
->icon('heroicon-o-arrow-down-tray'),
ExportBulkAction::make('csv_export')
->label('Export .csv')
->exporter(UserExporter::class)
->formats([
ExportFormat::Csv,
])
->fileDisk('local')
->icon('heroicon-o-document-text')
->color('primary')
->before(function (ModelsResource $resource) {
$resource->deleteOldExports();
})
->deselectRecordsAfterCompletion()
->icon('heroicon-o-arrow-down-tray'),
i'm stucked...any suggestions? Thanks a lot
No description
1 Reply
ocram82
ocram82OP3w ago
More info from this: the problem seems to be the selection above, if i not remove the string in the input search i obtain only the last selected export row. If i remove that string i can export all the rows...it's a bug?

Did you find this page helpful?