summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue.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/issue.go
parent5c5ccddb02113027f0b1a24e836ee61eebd56729 (diff)
downloadgitea-2a2a8cd619c5c11300d0dc6d800dfe609ba03a14.tar.gz
gitea-2a2a8cd619c5c11300d0dc6d800dfe609ba03a14.zip
ui and pulls index fix
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r--routers/repo/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index f6d6f32e32..e821c130c4 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -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,