From dec663cc0aedfe918d394747bf3fa7e97f8a08b6 Mon Sep 17 00:00:00 2001 From: Morgan Bazalgette Date: Sun, 27 May 2018 20:34:33 +0200 Subject: [PATCH] Don't force due date to current time (#3830) (#4057) --- models/issue_milestone.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/models/issue_milestone.go b/models/issue_milestone.go index 761b598e9..a5e0bd60d 100644 --- a/models/issue_milestone.go +++ b/models/issue_milestone.go @@ -31,11 +31,6 @@ type Milestone struct { ClosedDateUnix util.TimeStamp } -// BeforeInsert is invoked from XORM before inserting an object of this type. -func (m *Milestone) BeforeInsert() { - m.DeadlineUnix = util.TimeStampNow() -} - // BeforeUpdate is invoked from XORM before updating this object. func (m *Milestone) BeforeUpdate() { if m.NumIssues > 0 {