diff options
author | Morgan Bazalgette <git@howl.moe> | 2018-04-23 07:55:03 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-04-23 13:55:03 +0800 |
commit | 320c9817bc3cbfc696885bc81154796540dce83f (patch) | |
tree | db076b995cb9dadc33ccb831290a4573773fff65 /models/issue_milestone.go | |
parent | bae26421aa31176cff8e9f9ad82ae3d633fc394b (diff) | |
download | gitea-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.go | 5 |
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 { |