aboutsummaryrefslogtreecommitdiffstats
path: root/routers/user/home.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/home.go')
-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)