]> source.dussan.org Git - gitea.git/commitdiff
resolved #394 (#396)
authorLunny Xiao <xiaolunwen@gmail.com>
Fri, 23 Dec 2016 00:26:01 +0000 (08:26 +0800)
committerThomas Boerger <thomas@webhippie.de>
Fri, 23 Dec 2016 00:26:01 +0000 (01:26 +0100)
routers/user/home.go

index a08fae072730480cb1c0d564ddd8f8d764f8630a..513dd9ce060cd013e5b0c6373b1687ab1478f5dc 100644 (file)
@@ -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)