Quick fix milestone deadline 9999 for 1.22 (#32423)

This commit is contained in:
wxiaoguang 2024-11-05 14:13:19 +08:00 committed by GitHub
parent 7430d069b3
commit 936847b3da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}