diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-29 14:36:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 08:36:32 +0200 |
commit | c09e020558318feebbdce477f91c94411e8959b6 (patch) | |
tree | 49a83b33103c114c7068a33bb246e066ae1062e0 /routers/repo/milestone.go | |
parent | f29c301040a9de42130b1b1d15f94b5869137f08 (diff) | |
download | gitea-c09e020558318feebbdce477f91c94411e8959b6.tar.gz gitea-c09e020558318feebbdce477f91c94411e8959b6.zip |
Fix milestone API state parameter unhandled (#10049)
* Fix milestone API state parameter unhandled
* Fix test
Diffstat (limited to 'routers/repo/milestone.go')
-rw-r--r-- | routers/repo/milestone.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/milestone.go b/routers/repo/milestone.go index 3e81ea0452..25dcd5bc93 100644 --- a/routers/repo/milestone.go +++ b/routers/repo/milestone.go @@ -192,7 +192,7 @@ func EditMilestonePost(ctx *context.Context, form auth.CreateMilestoneForm) { m.Name = form.Title m.Content = form.Content m.DeadlineUnix = timeutil.TimeStamp(deadline.Unix()) - if err = models.UpdateMilestone(m); err != nil { + if err = models.UpdateMilestone(m, m.IsClosed); err != nil { ctx.ServerError("UpdateMilestone", err) return } |