mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Partial fix for #3840
This commit is contained in:
parent
fc157b2944
commit
5f5346ed71
@ -113,6 +113,7 @@ class SearchController extends Controller
|
||||
$parameters = ['search' => $fullQuery];
|
||||
$url = route('search.index') . '?' . http_build_query($parameters);
|
||||
$groups->setPath($url);
|
||||
|
||||
try {
|
||||
$html = view('search.search', compact('groups', 'hasPages', 'searchTime'))->render();
|
||||
// @codeCoverageIgnoreStart
|
||||
|
@ -246,11 +246,11 @@ class OperatorQuerySearch implements SearchInterface
|
||||
$value = $searchNode->getNode()->getValue();
|
||||
// must be valid operator:
|
||||
if (in_array($operator, $this->validOperators, true)) {
|
||||
if ($this->updateCollector($operator, $value)) {
|
||||
if ($this->updateCollector($operator, (string) $value)) {
|
||||
$this->operators->push(
|
||||
[
|
||||
'type' => self::getRootOperator($operator),
|
||||
'value' => $value,
|
||||
'value' => (string) $value,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ TODO: hide and show columns
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for group in groups %}
|
||||
{% if group.count > 1 %}
|
||||
{% if group.count() > 1 %}
|
||||
<tr style="border-top:1px #aaa solid;">
|
||||
<td colspan="2" style="border-top:1px #aaa solid;">
|
||||
<small><strong>
|
||||
|
@ -1,6 +1,8 @@
|
||||
<p class="search_count">
|
||||
{% if hasPages %}
|
||||
{% if true == hasPages %}
|
||||
{{ trans('firefly.search_found_more_transactions', {count: groups.count(), time: searchTime}) }}
|
||||
{% elseif 0 == groups.count() %}
|
||||
{{ trans_choice('firefly.search_found_transactions', 0, {time: searchTime}) }}
|
||||
{% else %}
|
||||
{{ trans_choice('firefly.search_found_transactions', groups.perPage(), {time: searchTime}) }}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user