Various code cleanup.

This commit is contained in:
James Cole
2018-03-25 09:01:43 +02:00
parent dd9694890a
commit 6660306ac4
46 changed files with 327 additions and 121 deletions

View File

@@ -236,7 +236,7 @@ class BoxController extends Controller
foreach ($accounts as $account) {
$accountCurrency = $currency;
$balance = $balances[$account->id] ?? '0';
$currencyId = intval($account->getMeta('currency_id'));
$currencyId = intval($repository->getMetaValue($account, 'currency_id'));
if ($currencyId !== 0) {
$accountCurrency = $currencyRepos->findNull($currencyId);
}