From 936847b3da22cdedf7bf8455adbdd0fa71e94a7a Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 5 Nov 2024 14:13:19 +0800 Subject: [PATCH] Quick fix milestone deadline 9999 for 1.22 (#32423) --- models/issues/milestone.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/issues/milestone.go b/models/issues/milestone.go index db0312adf0..8affe14d71 100644 --- a/models/issues/milestone.go +++ b/models/issues/milestone.go @@ -84,7 +84,7 @@ func (m *Milestone) BeforeUpdate() { // this object. func (m *Milestone) AfterLoad() { m.NumOpenIssues = m.NumIssues - m.NumClosedIssues - if m.DeadlineUnix.Year() == 9999 { + if m.DeadlineUnix.Year() >= 9999 { return }