mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 05:15:33 +03: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
|
||||
NumOpenIssues int `xorm:"-"`
|
||||
Completeness int // Percentage(1-100).
|
||||
IsOverDue bool `xorm:"-"`
|
||||
IsOverdue bool `xorm:"-"`
|
||||
|
||||
DeadlineString string `xorm:"-"`
|
||||
DeadlineUnix util.TimeStamp
|
||||
|
@ -52,7 +52,7 @@ func (m *Milestone) AfterLoad() {
|
|||
|
||||
m.DeadlineString = m.DeadlineUnix.Format("2006-01-02")
|
||||
if util.TimeStampNow() >= m.DeadlineUnix {
|
||||
m.IsOverDue = true
|
||||
m.IsOverdue = true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue