summaryrefslogtreecommitdiffstats
path: root/routers/repo/pull.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r--routers/repo/pull.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index eb06becb8d..19f9f5b8e2 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -598,7 +598,7 @@ func CompareAndPullRequestPost(ctx *middleware.Context, form auth.CreateIssueFor
pull := &models.Issue{
RepoID: repo.ID,
- Index: int64(repo.NumIssues) + 1,
+ Index: repo.NextIssueIndex(),
Name: form.Title,
PosterID: ctx.User.Id,
Poster: ctx.User,