From 6896dad6754e3878f21ccc88cf740b92e8a873a6 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 3 Feb 2020 04:19:04 +0100 Subject: [PATCH] working part of #9998 (#10114) (#10115) Co-authored-by: zeripath Co-authored-by: zeripath --- routers/user/home.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/routers/user/home.go b/routers/user/home.go index ff77bd0032..819853ac38 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -525,13 +525,17 @@ func Issues(ctx *context.Context) { } } - issueStats, err := models.GetUserIssueStats(models.UserIssueStatsOptions{ + issueStatsOpts := models.UserIssueStatsOptions{ UserID: ctxUser.ID, UserRepoIDs: userRepoIDs, FilterMode: filterMode, IsPull: isPullList, IsClosed: isShowClosed, - }) + } + if len(repoIDs) > 0 { + issueStatsOpts.UserRepoIDs = repoIDs + } + issueStats, err := models.GetUserIssueStats(issueStatsOpts) if err != nil { ctx.ServerError("GetUserIssueStats", err) return