Merge pull request #3070 from CihanSenturk/fix-export-filter-issue

Fixed export filter issue
This commit is contained in:
Cüneyt Şentürk 2023-10-15 17:59:39 +03:00 committed by GitHub
commit 63841cfc2c
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';