diff options
author | 6543 <6543@obermui.de> | 2020-02-03 03:21:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-03 10:21:50 +0800 |
commit | e959d1a48baf6a59943949e0d6840e1512cd8934 (patch) | |
tree | 20c11dc183663fdd70b0737b881dd3155cfcf888 /routers | |
parent | 2c903383b5154795b90e4b4ed8eaadc6fac17a13 (diff) | |
download | gitea-e959d1a48baf6a59943949e0d6840e1512cd8934.tar.gz gitea-e959d1a48baf6a59943949e0d6840e1512cd8934.zip |
working part of #9998 (#10114)
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/home.go | 8 |
1 files 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 |