From 1dd098a283dc1fcc65370263dfcb24293718ec31 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 26 Nov 2025 19:06:58 +0100 Subject: [PATCH] Fix #11284 --- 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 ed71714888..ce78a979f1 100644 --- a/app/Support/Navigation.php +++ b/app/Support/Navigation.php @@ -208,7 +208,7 @@ class Navigation $currentEnd = clone $end; // Log::debug(sprintf('Now in endOfPeriod("%s", "%s").', $currentEnd->toIso8601String(), $repeatFreq)); - if('MTD' === $repeatFreq) { + if('MTD' === $repeatFreq && $end->isFuture()) { // fall back to a monthly schedule if the requested period is MTD. Log::debug('endOfPeriod() requests "MTD", set it to "1M" instead.'); $repeatFreq = '1M';