summaryrefslogtreecommitdiffstats
path: root/models/issue_milestone.go
diff options
context:
space:
mode:
authorMorgan Bazalgette <git@howl.moe>2018-04-23 07:55:03 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2018-04-23 13:55:03 +0800
commit320c9817bc3cbfc696885bc81154796540dce83f (patch)
treedb076b995cb9dadc33ccb831290a4573773fff65 /models/issue_milestone.go
parentbae26421aa31176cff8e9f9ad82ae3d633fc394b (diff)
downloadgitea-320c9817bc3cbfc696885bc81154796540dce83f.tar.gz
gitea-320c9817bc3cbfc696885bc81154796540dce83f.zip
Don't force due date to current time (#3830)
Fixes #3827
Diffstat (limited to 'models/issue_milestone.go')
-rw-r--r--models/issue_milestone.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/models/issue_milestone.go b/models/issue_milestone.go
index 761b598e92..a5e0bd60df 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 {