forked from forgejo/forgejo
ui and pulls index fix
This commit is contained in:
parent
5c5ccddb02
commit
2a2a8cd619
6 changed files with 25 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue