Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix refactor for field.
James Colec3398d4d5132
diff --git a/app/Support/Amount.php b/app/Support/Amount.phpindex 54541bad07..c018e502c7 100644--- a/app/Support/Amount.php+++ b/app/Support/Amount.php@@ -108,8 +108,9 @@ class Amount*/public function getCurrencies(): Collection{- throw new FireflyException(sprintf('Method "%s" needs a refactor', __METHOD__));- return TransactionCurrency::where('enabled', true)->orderBy('code', 'ASC')->get();+ /** @var User $user */+ $user = auth()->user();+ return $user->currencies()->orderBy('code','ASC')->get();}/**