diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-12-23 08:26:01 +0800 |
---|---|---|
committer | Thomas Boerger <thomas@webhippie.de> | 2016-12-23 01:26:01 +0100 |
commit | a12da66dfb36eb0f0f0cb6d3a202e259ea67bc90 (patch) | |
tree | f2bfa55cc121c5ba65219b744192a0afea1f69c4 /routers | |
parent | b33078fa33441c33c5d018b1b9a248c646549842 (diff) | |
download | gitea-a12da66dfb36eb0f0f0cb6d3a202e259ea67bc90.tar.gz gitea-a12da66dfb36eb0f0f0cb6d3a202e259ea67bc90.zip |
resolved #394 (#396)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/home.go | 3 |
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) |