mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-28 03:33:08 +08: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