mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 09:51:40 +00:00
Fix #6168
This commit is contained in:
@@ -105,7 +105,7 @@ class NoCategoryController extends Controller
|
|||||||
->withAccountInformation()->withBudgetInformation()
|
->withAccountInformation()->withBudgetInformation()
|
||||||
->setTypes([TransactionType::WITHDRAWAL, TransactionType::DEPOSIT, TransactionType::TRANSFER]);
|
->setTypes([TransactionType::WITHDRAWAL, TransactionType::DEPOSIT, TransactionType::TRANSFER]);
|
||||||
$groups = $collector->getPaginatedGroups();
|
$groups = $collector->getPaginatedGroups();
|
||||||
$groups->setPath(route('categories.no-category'));
|
$groups->setPath(route('categories.no-category', [$start->format('Y-m-d'), $end->format('Y-m-d')]));
|
||||||
|
|
||||||
return view('categories.no-category', compact('groups', 'subTitle', 'periods', 'start', 'end'));
|
return view('categories.no-category', compact('groups', 'subTitle', 'periods', 'start', 'end'));
|
||||||
}
|
}
|
||||||
|
@@ -422,15 +422,6 @@ trait PeriodOverview
|
|||||||
Log::debug(sprintf('End for getNoCategoryPeriodOverview() is %s', $end->format('Y-m-d')));
|
Log::debug(sprintf('End for getNoCategoryPeriodOverview() is %s', $end->format('Y-m-d')));
|
||||||
|
|
||||||
// properties for cache
|
// properties for cache
|
||||||
$cache = new CacheProperties;
|
|
||||||
$cache->addProperty($start);
|
|
||||||
$cache->addProperty($end);
|
|
||||||
$cache->addProperty('no-category-period-entries');
|
|
||||||
|
|
||||||
if ($cache->has()) {
|
|
||||||
return $cache->get();
|
|
||||||
}
|
|
||||||
|
|
||||||
$dates = app('navigation')->blockPeriods($start, $end, $range);
|
$dates = app('navigation')->blockPeriods($start, $end, $range);
|
||||||
$entries = [];
|
$entries = [];
|
||||||
|
|
||||||
@@ -475,7 +466,6 @@ trait PeriodOverview
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
Log::debug('End of loops');
|
Log::debug('End of loops');
|
||||||
$cache->store($entries);
|
|
||||||
|
|
||||||
return $entries;
|
return $entries;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user