summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-02-03 03:21:50 +0100
committerGitHub <noreply@github.com>2020-02-03 10:21:50 +0800
commite959d1a48baf6a59943949e0d6840e1512cd8934 (patch)
tree20c11dc183663fdd70b0737b881dd3155cfcf888 /routers/user
parent2c903383b5154795b90e4b4ed8eaadc6fac17a13 (diff)
downloadgitea-e959d1a48baf6a59943949e0d6840e1512cd8934.tar.gz
gitea-e959d1a48baf6a59943949e0d6840e1512cd8934.zip
working part of #9998 (#10114)
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/home.go8
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