mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 10:16:49 +00:00
Fix account display.
This commit is contained in:
@@ -269,7 +269,12 @@ class AccountController extends Controller
|
|||||||
$start = null;
|
$start = null;
|
||||||
$end = null;
|
$end = null;
|
||||||
$periods = new Collection;
|
$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.
|
// prep for "all" view.
|
||||||
if ($moment === 'all') {
|
if ($moment === 'all') {
|
||||||
|
Reference in New Issue
Block a user