Quick fix milestone deadline 9999 for 1.22 (#32423)

pull/32426/head
wxiaoguang 1 week ago committed by GitHub
parent 7430d069b3
commit 936847b3da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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
}

Loading…
Cancel
Save