Also fixed tests.

This commit is contained in:
James Cole
2016-02-05 19:25:17 +01:00
parent 82a4c706b0
commit c9b215684c
2 changed files with 13 additions and 5 deletions

View File

@@ -38,11 +38,11 @@ class SearchController extends Controller
$words = explode(' ', $query);
$subTitle = trans('firefly.search_results_for', ['query' => $query]);
$transactions = [];//$searcher->searchTransactions($words);
$accounts = [];//$searcher->searchAccounts($words);
$categories = [];//$searcher->searchCategories($words);
$budgets = [];//$searcher->searchBudgets($words);
$tags = [];//$searcher->searchTags($words);
$transactions = $searcher->searchTransactions($words);
$accounts = $searcher->searchAccounts($words);
$categories = $searcher->searchCategories($words);
$budgets = $searcher->searchBudgets($words);
$tags = $searcher->searchTags($words);
$result = ['transactions' => $transactions, 'accounts' => $accounts, 'categories' => $categories, 'budgets' => $budgets, 'tags' => $tags];
}