aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/pull.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-03 03:49:50 -0400
committerUnknwon <u@gogs.io>2015-09-03 03:49:50 -0400
commit2a2a8cd619c5c11300d0dc6d800dfe609ba03a14 (patch)
tree2004c24cef6e4c91349609985cb5ba30732407de /routers/repo/pull.go
parent5c5ccddb02113027f0b1a24e836ee61eebd56729 (diff)
ui and pulls index fix
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 eb06becb..19f9f5b8 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,