1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 02:38:35 +00:00

#2697 fix panic when close issue via commit message

This commit is contained in:
Unknwon
2016-02-25 14:17:55 -05:00
parent 4438b7793b
commit 129638117f
7 changed files with 11 additions and 12 deletions

View File

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