working part of #9998 (#10114)

Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
6543 2020-02-03 03:21:50 +01:00 committed by GitHub
parent 2c903383b5
commit e959d1a48b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -538,13 +538,17 @@ func Issues(ctx *context.Context) {
} }
} }
issueStats, err := models.GetUserIssueStats(models.UserIssueStatsOptions{ issueStatsOpts := models.UserIssueStatsOptions{
UserID: ctxUser.ID, UserID: ctxUser.ID,
UserRepoIDs: userRepoIDs, UserRepoIDs: userRepoIDs,
FilterMode: filterMode, FilterMode: filterMode,
IsPull: isPullList, IsPull: isPullList,
IsClosed: isShowClosed, IsClosed: isShowClosed,
}) }
if len(repoIDs) > 0 {
issueStatsOpts.UserRepoIDs = repoIDs
}
issueStats, err := models.GetUserIssueStats(issueStatsOpts)
if err != nil { if err != nil {
ctx.ServerError("GetUserIssueStats", err) ctx.ServerError("GetUserIssueStats", err)
return return