Skip to content

Commit 936847b

Browse files
authored
Quick fix milestone deadline 9999 for 1.22 (#32423)
1 parent 7430d06 commit 936847b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/milestone.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (m *Milestone) BeforeUpdate() {
8484
// this object.
8585
func (m *Milestone) AfterLoad() {
8686
m.NumOpenIssues = m.NumIssues - m.NumClosedIssues
87-
if m.DeadlineUnix.Year() == 9999 {
87+
if m.DeadlineUnix.Year() >= 9999 {
8888
return
8989
}
9090

0 commit comments

Comments
 (0)