summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorTravis Parker <travis.parker@gmail.com>2018-05-07 02:50:27 -0700
committerLauris BH <lauris@nix.lv>2018-05-07 12:50:27 +0300
commit73370b8cf7e65712890c35370eac587c81d6d54d (patch)
tree30db588d3498e97c39e6ebe9b665d67f5c90fed6 /models
parente6b0a2db62f3b80efa9ad1886af5fa84b2fd3009 (diff)
downloadgitea-73370b8cf7e65712890c35370eac587c81d6d54d.tar.gz
gitea-73370b8cf7e65712890c35370eac587c81d6d54d.zip
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>
Diffstat (limited to 'models')
-rw-r--r--models/issue_milestone.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue_milestone.go b/models/issue_milestone.go
index 949932fb2b..8de1f97571 100644
--- a/models/issue_milestone.go
+++ b/models/issue_milestone.go
@@ -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
}
}