aboutsummaryrefslogtreecommitdiffstats
path: root/models/action.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-25 14:17:55 -0500
committerUnknwon <u@gogs.io>2016-02-25 14:17:55 -0500
commit129638117f1eed78475a041bd65097e56939caca (patch)
tree23d9c8b6827e986be30511f1cc7d222edf38ab73 /models/action.go
parent4438b7793b143c71675b0ae954036830b7afd2b7 (diff)
downloadgitea-129638117f1eed78475a041bd65097e56939caca.tar.gz
gitea-129638117f1eed78475a041bd65097e56939caca.zip
#2697 fix panic when close issue via commit message
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go
index c1e23339f1..678d6c6094 100644
--- a/models/action.go
+++ b/models/action.go
@@ -368,7 +368,7 @@ func updateIssuesCommit(u *User, repo *Repository, repoUserName, repoName string
continue
}
- if err = issue.ChangeStatus(u, true); err != nil {
+ if err = issue.ChangeStatus(u, repo, true); err != nil {
return err
}
}
@@ -408,7 +408,7 @@ func updateIssuesCommit(u *User, repo *Repository, repoUserName, repoName string
continue
}
- if err = issue.ChangeStatus(u, false); err != nil {
+ if err = issue.ChangeStatus(u, repo, false); err != nil {
return err
}
}