1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-26 09:09:36 -05:00

Don't force due date to current time (#3830)

Fixes #3827
This commit is contained in:
Morgan Bazalgette 2018-04-23 07:55:03 +02:00 committed by Lunny Xiao
parent bae26421aa
commit 320c9817bc

View file

@ -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 {