filament-export icon indicating copy to clipboard operation
filament-export copied to clipboard

Fix error when exporting all records

Open perryfaro opened this issue 1 year ago • 2 comments

If you choose 'all' in the filament table and then select one or more rows for export, you will receive the following error message:

Unsupported operand types: string * int

With this fix, at the time of export, in the case of the 'all' option, it calculates the number of records in the collection to prevent the error.

perryfaro avatar Sep 29 '23 17:09 perryfaro

hey! sorry but could not recreate the problem. as I see it defines tableRecordsPerPage as -1 when I select All. which exact version of filament are you using?

alperenersoy avatar Oct 09 '23 17:10 alperenersoy

Same problem, and i fix with your code @perryfaro Thank you so much!

Manoah1988 avatar Jan 10 '24 09:01 Manoah1988