From e959d1a48baf6a59943949e0d6840e1512cd8934 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 3 Feb 2020 03:21:50 +0100 Subject: [PATCH] working part of #9998 (#10114) 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 8b3155ea0b..6b71c51de3 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -538,13 +538,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