Fix account display.

This commit is contained in:
James Cole 2017-10-20 13:35:54 +02:00
parent b0be407c7c
commit a352423cf8
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -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') {