From fcc8d4f29a8e31f9d4f2d8f9a4eb35829614a61a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Mon, 28 Jun 2021 18:26:17 +0300 Subject: [PATCH] fixed utilities import.. --- app/Utilities/Import.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Utilities/Import.php b/app/Utilities/Import.php index f2b3d58f3..266eefc8b 100644 --- a/app/Utilities/Import.php +++ b/app/Utilities/Import.php @@ -29,6 +29,8 @@ class Import $total_rows = 0; if (!empty($rows[0])) { $total_rows = count($rows[0]); + } else if (!empty($sheets = $class->sheets())) { + $total_rows = count($rows[array_keys($sheets)[0]]); } $class->queue($file)->onQueue('imports')->chain([