From 52c72ad029be2a6a712daa05499cd35e27aeabb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Wed, 24 Apr 2024 18:03:57 +0300 Subject: [PATCH] fixed export multisheets filter issue --- app/Utilities/Export.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utilities/Export.php b/app/Utilities/Export.php index ed6053199..cf4ff8d0a 100644 --- a/app/Utilities/Export.php +++ b/app/Utilities/Export.php @@ -24,7 +24,7 @@ class Export //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[array_key_first($sheets)])->collection()->pluck('id')->toArray(); + $class->ids = ! empty($ids = (new $sheets[array_key_first($sheets)])->collection()->pluck('id')->toArray()) ? $ids : [0]; } if (should_queue()) {