summaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-13 23:21:43 +0800
committerUnknwon <u@gogs.io>2015-08-13 23:21:43 +0800
commit1fb53067f478414302096d5d976a3db85df9e2eb (patch)
treeb1b8ba83989fe5edd346a26c6bd0068abbb4d533 /routers/repo
parent0ec7d1539b177dbe55f3c68691b0c9f8e35193a9 (diff)
downloadgitea-1fb53067f478414302096d5d976a3db85df9e2eb.tar.gz
gitea-1fb53067f478414302096d5d976a3db85df9e2eb.zip
finish close/reopen issue
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/issue.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 4f3408edda..49f788e4a9 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -720,9 +720,9 @@ func NewComment(ctx *middleware.Context, form auth.CreateCommentForm) {
// Check if issue owner/poster changes the status of issue.
if (ctx.Repo.IsOwner() || issue.IsPoster(ctx.User.Id)) &&
- (form.NewStatus == "reopen" || form.NewStatus == "close") {
+ (form.Status == "reopen" || form.Status == "close") {
issue.Repo = ctx.Repo.Repository
- if err = issue.ChangeStatus(ctx.User, form.NewStatus == "close"); err != nil {
+ if err = issue.ChangeStatus(ctx.User, form.Status == "close"); err != nil {
ctx.Handle(500, "ChangeStatus", err)
return
}