Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #3770
James Cole9d35048fb980
diff --git a/app/Http/Controllers/TagController.php b/app/Http/Controllers/TagController.phpindex 44f15041fc..4637d7e20f 100644--- a/app/Http/Controllers/TagController.php+++ b/app/Http/Controllers/TagController.php@@ -180,8 +180,9 @@ class TagController extends Controllerpublic function index(TagRepositoryInterface $repository){// start with oldest tag- $oldestTagDate = null === $repository->oldestTag() ? clone session('first') : $repository->oldestTag()->date;- $newestTagDate = null === $repository->newestTag() ? new Carbon : $repository->newestTag()->date;+ $first = session('first', today()) ?? today();+ $oldestTagDate = null === $repository->oldestTag() ? clone $first : $repository->oldestTag()->date;+ $newestTagDate = null === $repository->newestTag() ? today() : $repository->newestTag()->date;$oldestTagDate->startOfYear();$newestTagDate->endOfYear();$tags = [];