This commit is contained in:
Unknwon committed 2015-10-23 10:31:13 -04:00
1 parent b5fdf0947b
commit c6ce6bd4c2
5 files changed
+9 -10

No files matched your search

+1 -1
View File
@@ -768,7 +768,7 @@ func NewComment(ctx *middleware.Context, form auth.CreateCommentForm) {
var pr *models.PullRequest
if form.Status == "reopen" {
if form.Status == "reopen" && issue.IsPull {
pull := issue.PullRequest
pr, err = models.GetUnmergedPullRequest(pull.HeadRepoID, pull.BaseRepoID, pull.HeadBranch, pull.BaseBranch)
if err != nil {