summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-02 12:43:31 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-02 12:43:31 -0400
commitdb66b8da7227f7fd3ff9a8d7ccece0c3e31ea3d0 (patch)
treea48dc02ac1cb79ab18cb2837dccae10a503358f1 /routers/repo/issue.go
parent97b133bbee77740bded5b4f2e7ad9896d6804cf7 (diff)
downloadgitea-db66b8da7227f7fd3ff9a8d7ccece0c3e31ea3d0.tar.gz
gitea-db66b8da7227f7fd3ff9a8d7ccece0c3e31ea3d0.zip
Add release tmpl
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 41b2c7e9b1..be92542641 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -74,7 +74,7 @@ func Issues(ctx *middleware.Context) {
ctx.Data["Issues"] = showIssues
ctx.Data["IssueCount"] = ctx.Repo.Repository.NumIssues
- ctx.Data["OpenCount"] = ctx.Repo.Repository.NumIssues - ctx.Repo.Repository.NumClosedIssues
+ ctx.Data["OpenCount"] = ctx.Repo.Repository.NumOpenIssues
ctx.Data["ClosedCount"] = ctx.Repo.Repository.NumClosedIssues
ctx.Data["IssueCreatedCount"] = createdByCount
ctx.Data["IsShowClosed"] = ctx.Query("state") == "closed"