Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix account display.
James Colea352423cf8b4
diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.phpindex 53f796ee30..c64c86dfea 100644--- a/app/Http/Controllers/AccountController.php+++ b/app/Http/Controllers/AccountController.php@@ -269,7 +269,12 @@ class AccountController extends Controller$start = null;$end = null;$periods = new Collection;- $currency = $currencyRepos->find(intval($account->getMeta('currency_id')));+ $currencyId = intval($account->getMeta('currency_id'));+ $currency = $currencyRepos->find($currencyId);+ if ($currencyId === 0) {+ $currency = app('amount')->getDefaultCurrency();+ }+// prep for "all" view.if ($moment === 'all') {