mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Fix #3770
This commit is contained in:
@@ -180,8 +180,9 @@ class TagController extends Controller
|
|||||||
public function index(TagRepositoryInterface $repository)
|
public function index(TagRepositoryInterface $repository)
|
||||||
{
|
{
|
||||||
// start with oldest tag
|
// start with oldest tag
|
||||||
$oldestTagDate = null === $repository->oldestTag() ? clone session('first') : $repository->oldestTag()->date;
|
$first = session('first', today()) ?? today();
|
||||||
$newestTagDate = null === $repository->newestTag() ? new Carbon : $repository->newestTag()->date;
|
$oldestTagDate = null === $repository->oldestTag() ? clone $first : $repository->oldestTag()->date;
|
||||||
|
$newestTagDate = null === $repository->newestTag() ? today() : $repository->newestTag()->date;
|
||||||
$oldestTagDate->startOfYear();
|
$oldestTagDate->startOfYear();
|
||||||
$newestTagDate->endOfYear();
|
$newestTagDate->endOfYear();
|
||||||
$tags = [];
|
$tags = [];
|
||||||
|
Reference in New Issue
Block a user