mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Fix zero length limit.
This commit is contained in:
@@ -190,7 +190,9 @@ class GroupCollector implements GroupCollectorInterface
|
||||
public function getPaginatedGroups(): LengthAwarePaginator
|
||||
{
|
||||
$set = $this->getGroups();
|
||||
|
||||
if(0===$this->limit) {
|
||||
$this->setLimit(50);
|
||||
}
|
||||
return new LengthAwarePaginator($set, $this->total, $this->limit, $this->page);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user