Skip to content

Commit

Permalink
Quick fix milestone deadline 9999 for 1.22 (#32423)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored Nov 5, 2024
1 parent 7430d06 commit 936847b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/issues/milestone.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 936847b

Please sign in to comment.