Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix old todo item
James Cole60196383885a
diff --git a/app/Console/Commands/Upgrade/OtherCurrenciesCorrections.php b/app/Console/Commands/Upgrade/OtherCurrenciesCorrections.phpindex c16c3e85d0..8c4fa54d40 100644--- a/app/Console/Commands/Upgrade/OtherCurrenciesCorrections.php+++ b/app/Console/Commands/Upgrade/OtherCurrenciesCorrections.php@@ -125,19 +125,17 @@ class OtherCurrenciesCorrections extends Commandif (isset($this->accountCurrencies[$accountId]) && $this->accountCurrencies[$accountId] instanceof TransactionCurrency) {return $this->accountCurrencies[$accountId]; // @codeCoverageIgnore}- // TODO we can use getAccountCurrency() instead- $currencyId = (int)$this->accountRepos->getMetaValue($account, 'currency_id');- $result = $this->currencyRepos->findNull($currencyId);- if (null === $result) {+ $currency = $this->accountRepos->getAccountCurrency($account);+ if (null === $currency) {// @codeCoverageIgnoreStart$this->accountCurrencies[$accountId] = 0;return null;// @codeCoverageIgnoreEnd}- $this->accountCurrencies[$accountId] = $result;+ $this->accountCurrencies[$accountId] = $currency;- return $result;+ return $currency;}