mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix zero length limit.
This commit is contained in:
@@ -192,7 +192,7 @@ class OperatorQuerySearch implements SearchInterface
|
||||
public function searchTransactions(): LengthAwarePaginator
|
||||
{
|
||||
if (0 === count($this->getWords()) && 0 === count($this->getOperators())) {
|
||||
throw new FireflyException('Search query is empty.');
|
||||
return new LengthAwarePaginator;
|
||||
}
|
||||
return $this->collector->getPaginatedGroups();
|
||||
}
|
||||
|
Reference in New Issue
Block a user