mirror of
https://github.com/go-gitea/gitea
synced 2024-11-24 18:23:06 +01:00
consistent IsOverdue field name capitalization (#3909)
Milestone.IsOverDue vs Issue.IsOverdue, the former was also causing the milestone list page template to fail to render if any milestones have a due date assigned. Signed-off-by: Travis J Parker <travis.parker@gmail.com>
This commit is contained in:
parent
e6b0a2db62
commit
73370b8cf7
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ type Milestone struct {
|
||||||
NumClosedIssues int
|
NumClosedIssues int
|
||||||
NumOpenIssues int `xorm:"-"`
|
NumOpenIssues int `xorm:"-"`
|
||||||
Completeness int // Percentage(1-100).
|
Completeness int // Percentage(1-100).
|
||||||
IsOverDue bool `xorm:"-"`
|
IsOverdue bool `xorm:"-"`
|
||||||
|
|
||||||
DeadlineString string `xorm:"-"`
|
DeadlineString string `xorm:"-"`
|
||||||
DeadlineUnix util.TimeStamp
|
DeadlineUnix util.TimeStamp
|
||||||
|
@ -52,7 +52,7 @@ func (m *Milestone) AfterLoad() {
|
||||||
|
|
||||||
m.DeadlineString = m.DeadlineUnix.Format("2006-01-02")
|
m.DeadlineString = m.DeadlineUnix.Format("2006-01-02")
|
||||||
if util.TimeStampNow() >= m.DeadlineUnix {
|
if util.TimeStampNow() >= m.DeadlineUnix {
|
||||||
m.IsOverDue = true
|
m.IsOverdue = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue