diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-11-05 14:13:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-05 14:13:19 +0800 |
commit | 936847b3da22cdedf7bf8455adbdd0fa71e94a7a (patch) | |
tree | ad6f8bdb1e3975757eb77194599d989e91a61ad5 /models | |
parent | 7430d069b31df06c23c659b8bc6cd81b651c8bed (diff) | |
download | gitea-936847b3da22cdedf7bf8455adbdd0fa71e94a7a.tar.gz gitea-936847b3da22cdedf7bf8455adbdd0fa71e94a7a.zip |
Quick fix milestone deadline 9999 for 1.22 (#32423)
Diffstat (limited to 'models')
-rw-r--r-- | models/issues/milestone.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issues/milestone.go b/models/issues/milestone.go index db0312adf0..8affe14d71 100644 --- a/models/issues/milestone.go +++ b/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 } |