summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-12-23 08:26:01 +0800
committerThomas Boerger <thomas@webhippie.de>2016-12-23 01:26:01 +0100
commita12da66dfb36eb0f0f0cb6d3a202e259ea67bc90 (patch)
treef2bfa55cc121c5ba65219b744192a0afea1f69c4 /routers
parentb33078fa33441c33c5d018b1b9a248c646549842 (diff)
downloadgitea-a12da66dfb36eb0f0f0cb6d3a202e259ea67bc90.tar.gz
gitea-a12da66dfb36eb0f0f0cb6d3a202e259ea67bc90.zip
resolved #394 (#396)
Diffstat (limited to 'routers')
-rw-r--r--routers/user/home.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index a08fae0727..513dd9ce06 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -250,6 +250,9 @@ func Issues(ctx *context.Context) {
}
}
ctx.Data["Repos"] = showRepos
+ if len(repoIDs) == 0 {
+ repoIDs = []int64{-1}
+ }
issueStats := models.GetUserIssueStats(repoID, ctxUser.ID, repoIDs, filterMode, isPullList)
issueStats.AllCount = int64(allCount)