mirror of
https://github.com/go-gitea/gitea
synced 2025-01-09 17:24:43 +00: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.
|
// this object.
|
||||||
func (m *Milestone) AfterLoad() {
|
func (m *Milestone) AfterLoad() {
|
||||||
m.NumOpenIssues = m.NumIssues - m.NumClosedIssues
|
m.NumOpenIssues = m.NumIssues - m.NumClosedIssues
|
||||||
if m.DeadlineUnix.Year() == 9999 {
|
if m.DeadlineUnix.Year() >= 9999 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user