mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00: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:
		| @@ -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 | ||||
| 	} | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user