Update AccountController.php

This commit is contained in:
James Cole 2017-03-21 08:17:27 +01:00 committed by GitHub
parent 34ac9bc71a
commit 37f78985ae

View File

@ -297,7 +297,7 @@ class AccountController extends Controller
$collector->setRange($start, $end);
}
$journals = $collector->getPaginatedJournals();
$journals->setPath('accounts/show/' . $moment . '/' . $account->id);
$journals->setPath('accounts/show/' . $account->id . '/' . $moment);
$count = $journals->getCollection()->count();
if ($count === 0) {
$start->subDay();