1
0
Fork 0
forked from forgejo/forgejo

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

@ -350,7 +350,7 @@ func NewIssuePost(ctx *middleware.Context, form auth.CreateIssueForm) {
issue := &models.Issue{
RepoID: ctx.Repo.Repository.ID,
Index: int64(repo.NumIssues) + int64(repo.NumPulls) + 1,
Index: repo.NextIssueIndex(),
Name: form.Title,
PosterID: ctx.User.Id,
Poster: ctx.User,