1
0
Fork 0

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:
Travis Parker 2018-05-07 02:50:27 -07:00 committed by Lauris BH
parent e6b0a2db62
commit 73370b8cf7

View file

@ -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
} }
} }