From ae126e83223c38fc95adfe7a35a190f0dc3057cc Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 24 Jun 2025 13:14:31 +0200 Subject: [PATCH] Fix #10493 --- app/Support/Navigation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Support/Navigation.php b/app/Support/Navigation.php index 0b336ed8bc..2549fbba95 100644 --- a/app/Support/Navigation.php +++ b/app/Support/Navigation.php @@ -582,7 +582,7 @@ class Navigation */ public function preferredEndOfPeriod(Carbon $start, Carbon $end): string { - if ((int) $start->diffInMonths($end, true) > 1) { + if ((int) $start->diffInMonths($end, true) > 1 && (int) $start->diffInMonths($end, true) <= 12) { return 'endOfMonth'; }