Skip to content

Commit

Permalink
[Fix] milestone close timestamp (go-gitea#8728)
Browse files Browse the repository at this point in the history
* BugFix: Update closed_date_unix colum on milestone table on close
  • Loading branch information
6543 committed Oct 29, 2019
1 parent d4501ec commit 7fd7a5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/issue_milestone.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ func ChangeMilestoneStatus(m *Milestone, isClosed bool) (err error) {
}

m.IsClosed = isClosed
if isClosed {
m.ClosedDateUnix = timeutil.TimeStampNow()
}

if err = updateMilestone(sess, m); err != nil {
return err
}
Expand Down

0 comments on commit 7fd7a5f

Please sign in to comment.