mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 20:17:52 +01:00
Quick fix milestone deadline 9999 for 1.22 (#32423)
This commit is contained in:
parent
7430d069b3
commit
936847b3da
@ -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…
Reference in New Issue
Block a user