mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 07:53:16 +00:00
Small fix in auto complete controller.
This commit is contained in:
@@ -99,6 +99,7 @@ class AutoCompleteController extends Controller
|
|||||||
$search = (string)$request->get('search');
|
$search = (string)$request->get('search');
|
||||||
$unfiltered = null;
|
$unfiltered = null;
|
||||||
$filtered = null;
|
$filtered = null;
|
||||||
|
|
||||||
$cache = new CacheProperties;
|
$cache = new CacheProperties;
|
||||||
$cache->addProperty($subject);
|
$cache->addProperty($subject);
|
||||||
// very unlikely a user will actually search for this string.
|
// very unlikely a user will actually search for this string.
|
||||||
@@ -156,7 +157,9 @@ class AutoCompleteController extends Controller
|
|||||||
if ('transaction_types' === $subject) {
|
if ('transaction_types' === $subject) {
|
||||||
$unfiltered = $this->getTransactionTypes();
|
$unfiltered = $this->getTransactionTypes();
|
||||||
}
|
}
|
||||||
|
if ('transaction-types' === $subject) {
|
||||||
|
$unfiltered = $this->getTransactionTypes();
|
||||||
|
}
|
||||||
|
|
||||||
// filter results
|
// filter results
|
||||||
$filtered = $this->filterResult($unfiltered, $search);
|
$filtered = $this->filterResult($unfiltered, $search);
|
||||||
|
Reference in New Issue
Block a user