Skip to content

Firefly III: a personal finances manager

Fix #11284

James Cole1dd098a283dc
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';