Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix currency search.
James Coleed17600f7948
diff --git a/app/Support/Search/OperatorQuerySearch.php b/app/Support/Search/OperatorQuerySearch.phpindex f428e9722d..f2ebfa8ed7 100644--- a/app/Support/Search/OperatorQuerySearch.php+++ b/app/Support/Search/OperatorQuerySearch.php@@ -677,6 +677,13 @@ class OperatorQuerySearch implements SearchInterface*/private function findCurrency(string $value): ?TransactionCurrency{+ if(str_contains($value,'(') && str_contains($value,')')) {+ // bad method to split and get the currency code:+ $parts = explode(' ', $value);+ $value = trim($parts[count($parts) -1], "() \t\n\r\0\x0B");+ }++$result = $this->currencyRepository->findByCodeNull($value);if (null === $result) {$result = $this->currencyRepository->findByNameNull($value);