From 2a2a8cd619c5c11300d0dc6d800dfe609ba03a14 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 3 Sep 2015 03:49:50 -0400 Subject: ui and pulls index fix --- routers/repo/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/repo/pull.go') 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, -- cgit v1.2.3