Skip to content

Firefly III: a personal finances manager

Make search work. [skip ci]

James Coleb149a816dd5e
diff --git a/app/Support/Search/Search.php b/app/Support/Search/Search.php
index 4e96e3cb5b..cc6bd5e9f3 100644
--- a/app/Support/Search/Search.php
+++ b/app/Support/Search/Search.php
@@ -241,8 +241,6 @@ class Search implements SearchInterface
} while (!$reachedEndOfList && !$foundEnough);
$result = $result->slice(0, $this->limit);
- var_dump($result->toArray());
- exit;
return $result;
}
diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php
index 23d501fdb0..b0d2efd35f 100644
--- a/resources/lang/en_US/firefly.php
+++ b/resources/lang/en_US/firefly.php
@@ -26,6 +26,8 @@ return [
'showEverything' => 'Show everything',
'never' => 'Never',
'search_results_for' => 'Search results for ":query"',
+ 'advanced_search' => 'Advanced search',
+ 'advanced_search_intro' => 'There are several modifiers that you can use in your search to narrow down the results. If you use any of these, the search will <em>only</em> return transactions. Please click the <i class="fa fa-question-circle"></i>-icon for more information.',
'bounced_error' => 'The message sent to :email bounced, so no access for you.',
'deleted_error' => 'These credentials do not match our records.',
'general_blocked_error' => 'Your account has been disabled, so you cannot login.',
diff --git a/resources/views/search/index.twig b/resources/views/search/index.twig
index fc82a50940..5459b7720f 100644
--- a/resources/views/search/index.twig
+++ b/resources/views/search/index.twig
@@ -22,9 +22,7 @@
</div>
<div class="box-body">
<p>
- There are several modifiers that you can use in your search to narrow down the results.
- If you use any of these, the search will <em>only</em> return transactions.
- Please click the <i class="fa fa-question-circle"></i>-icon for more information.
+ {{ 'advanced_search_intro'|_ }}
</p>
{# search form #}
<form class="form-horizontal" action="{{ route('search.index') }}" method="get">