fixed export empty ids issue
This commit is contained in:
parent
99e82f51de
commit
8455da09f5
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue