mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Fix #4098
This commit is contained in:
@@ -69,7 +69,6 @@ class SearchController extends Controller
|
||||
$ruleId = (int) $request->get('rule');
|
||||
$rule = null;
|
||||
$ruleChanged = false;
|
||||
$longQueryWarning = false;
|
||||
|
||||
// find rule, check if query is different, offer to update.
|
||||
$ruleRepository = app(RuleRepositoryInterface::class);
|
||||
@@ -80,9 +79,6 @@ class SearchController extends Controller
|
||||
$ruleChanged = true;
|
||||
}
|
||||
}
|
||||
if (strlen($fullQuery) > 250) {
|
||||
$longQueryWarning = true;
|
||||
}
|
||||
// parse search terms:
|
||||
$searcher->parseQuery($fullQuery);
|
||||
|
||||
@@ -92,7 +88,7 @@ class SearchController extends Controller
|
||||
|
||||
$subTitle = (string) trans('breadcrumbs.search_result', ['query' => $fullQuery]);
|
||||
|
||||
return view('search.index', compact('query', 'longQueryWarning', 'operators', 'page', 'rule', 'fullQuery', 'subTitle', 'ruleId', 'ruleChanged'));
|
||||
return view('search.index', compact('query', 'operators', 'page', 'rule', 'fullQuery', 'subTitle', 'ruleId', 'ruleChanged'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user