Remove initial balance accounts from auto-complete.

This commit is contained in:
James Cole 2019-08-12 18:17:43 +02:00
parent e67812bf64
commit 33e241d39a
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -68,6 +68,9 @@ class AutoCompleteController extends Controller
$filteredAccountTypes[] = $type;
}
}
if (0 === count($filteredAccountTypes)) {
$filteredAccountTypes = $allowedAccountTypes;
}
Log::debug(sprintf('Now in accounts("%s"). Filtering results.', $search), $filteredAccountTypes);
$return = [];