Skip to content

Commit 73370b8

Browse files
teeparklafriks
authored andcommitted
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>
1 parent e6b0a2d commit 73370b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/issue_milestone.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type Milestone struct {
2424
NumClosedIssues int
2525
NumOpenIssues int `xorm:"-"`
2626
Completeness int // Percentage(1-100).
27-
IsOverDue bool `xorm:"-"`
27+
IsOverdue bool `xorm:"-"`
2828

2929
DeadlineString string `xorm:"-"`
3030
DeadlineUnix util.TimeStamp
@@ -52,7 +52,7 @@ func (m *Milestone) AfterLoad() {
5252

5353
m.DeadlineString = m.DeadlineUnix.Format("2006-01-02")
5454
if util.TimeStampNow() >= m.DeadlineUnix {
55-
m.IsOverDue = true
55+
m.IsOverdue = true
5656
}
5757
}
5858

0 commit comments

Comments
 (0)