fixed export filter issue

This commit is contained in:
Cihan Şentürk 2023-10-13 16:23:40 +03:00 committed by GitHub
parent 3ce1f4ade9
commit 0db420e838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,11 @@ class Export
try {
$file_name = Str::filename($translation) . '-' . time() . '.' . $extension;
//Todo: This improvement solves the filter issue on multiple excel sheets. This solution is a temporary solution.
if (empty($class->ids) && method_exists($class, 'sheets') && is_array($sheets = $class->sheets())) {
$class->ids = (new $sheets[0])->collection()->pluck('id')->toArray();
}
if (should_queue()) {
$disk = 'temp';