ui and pulls index fix

This commit is contained in:
Unknwon 2015-09-03 03:49:50 -04:00
parent 5c5ccddb02
commit 2a2a8cd619
6 changed files with 25 additions and 8 deletions

View file

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