mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix controller for #718
This commit is contained in:
@@ -306,7 +306,7 @@ class AccountController extends Controller
|
|||||||
$collector->setRange($start, $end);
|
$collector->setRange($start, $end);
|
||||||
}
|
}
|
||||||
$journals = $collector->getPaginatedJournals();
|
$journals = $collector->getPaginatedJournals();
|
||||||
$journals->setPath('accounts/show/' . $account->id . '/' . $moment);
|
$journals->setPath(route('accounts.show',[$account->id, $moment]));
|
||||||
$count = $journals->getCollection()->count();
|
$count = $journals->getCollection()->count();
|
||||||
if ($count === 0 && $loop < 3) {
|
if ($count === 0 && $loop < 3) {
|
||||||
$start->subDay();
|
$start->subDay();
|
||||||
@@ -421,7 +421,7 @@ class AccountController extends Controller
|
|||||||
$start = $repository->oldestJournalDate($account);
|
$start = $repository->oldestJournalDate($account);
|
||||||
$range = Preferences::get('viewRange', '1M')->data;
|
$range = Preferences::get('viewRange', '1M')->data;
|
||||||
$start = Navigation::startOfPeriod($start, $range);
|
$start = Navigation::startOfPeriod($start, $range);
|
||||||
$end = Navigation::endOfX(new Carbon, $range);
|
$end = Navigation::endOfX(new Carbon, $range, null);
|
||||||
$entries = new Collection;
|
$entries = new Collection;
|
||||||
|
|
||||||
// properties for cache
|
// properties for cache
|
||||||
|
Reference in New Issue
Block a user