From 8455da09f5c1e2a67b2de9c1fdc9024837055f4f 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, 22 May 2024 21:37:42 +0300 Subject: [PATCH] fixed export empty ids issue --- app/Abstracts/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Abstracts/Model.php b/app/Abstracts/Model.php index df309d866..3722a4df5 100644 --- a/app/Abstracts/Model.php +++ b/app/Abstracts/Model.php @@ -162,7 +162,7 @@ abstract class Model extends Eloquent implements Ownable $limit = (int) $request->get('limit', setting('default.list_limit', '25')); $offset = $page ? ($page - 1) * $limit : 0; - if (! $this instanceof WithParentSheet && count((array) $ids) < $limit) { + if (! $this instanceof WithParentSheet && (empty($ids) || count((array) $ids) > $limit)) { $query->offset($offset)->limit($limit); }