mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-24 12:47:00 +00:00
Fix #3673
This commit is contained in:
@@ -88,7 +88,6 @@ class SearchController extends Controller
|
|||||||
|
|
||||||
$searcher->parseQuery($fullQuery);
|
$searcher->parseQuery($fullQuery);
|
||||||
$searcher->setPage($page);
|
$searcher->setPage($page);
|
||||||
$searcher->setLimit((int) config('firefly.search_result_limit'));
|
|
||||||
$groups = $searcher->searchTransactions();
|
$groups = $searcher->searchTransactions();
|
||||||
$hasPages = $groups->hasPages();
|
$hasPages = $groups->hasPages();
|
||||||
$searchTime = round($searcher->searchTime(), 3); // in seconds
|
$searchTime = round($searcher->searchTime(), 3); // in seconds
|
||||||
|
|||||||
@@ -48,8 +48,6 @@ class Search implements SearchInterface
|
|||||||
private $budgetRepository;
|
private $budgetRepository;
|
||||||
/** @var CategoryRepositoryInterface */
|
/** @var CategoryRepositoryInterface */
|
||||||
private $categoryRepository;
|
private $categoryRepository;
|
||||||
/** @var int */
|
|
||||||
private $limit = 100;
|
|
||||||
/** @var Collection */
|
/** @var Collection */
|
||||||
private $modifiers;
|
private $modifiers;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
@@ -156,7 +154,7 @@ class Search implements SearchInterface
|
|||||||
public function searchTransactions(): LengthAwarePaginator
|
public function searchTransactions(): LengthAwarePaginator
|
||||||
{
|
{
|
||||||
Log::debug('Start of searchTransactions()');
|
Log::debug('Start of searchTransactions()');
|
||||||
$pageSize = 50;
|
$pageSize = (int) config('firefly.search_result_limit');
|
||||||
|
|
||||||
/** @var GroupCollectorInterface $collector */
|
/** @var GroupCollectorInterface $collector */
|
||||||
$collector = app(GroupCollectorInterface::class);
|
$collector = app(GroupCollectorInterface::class);
|
||||||
@@ -172,14 +170,6 @@ class Search implements SearchInterface
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param int $limit
|
|
||||||
*/
|
|
||||||
public function setLimit(int $limit): void
|
|
||||||
{
|
|
||||||
$this->limit = $limit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param User $user
|
* @param User $user
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -66,11 +66,6 @@ interface SearchInterface
|
|||||||
*/
|
*/
|
||||||
public function searchTransactions(): LengthAwarePaginator;
|
public function searchTransactions(): LengthAwarePaginator;
|
||||||
|
|
||||||
/**
|
|
||||||
* @param int $limit
|
|
||||||
*/
|
|
||||||
public function setLimit(int $limit);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param User $user
|
* @param User $user
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user