Fix list view.

This commit is contained in:
James Cole 2017-11-05 21:12:49 +01:00
parent d2ab03061f
commit 8145c23905
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -322,12 +322,12 @@ class AccountController extends Controller
if (!is_null($start)) {
$collector->setRange($start, $end);
}
$journals = $collector->getPaginatedJournals();
$journals->setPath(route('accounts.show', [$account->id, $moment]));
$transactions = $collector->getPaginatedJournals();
$transactions->setPath(route('accounts.show', [$account->id, $moment]));
return view(
'accounts.show',
compact('account', 'currency', 'moment', 'periods', 'subTitleIcon', 'journals', 'subTitle', 'start', 'end', 'chartUri')
compact('account', 'currency', 'moment', 'periods', 'subTitleIcon', 'transactions', 'subTitle', 'start', 'end', 'chartUri')
);
}