diff options
Diffstat (limited to 'routers/web/user/home.go')
-rw-r--r-- | routers/web/user/home.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/web/user/home.go b/routers/web/user/home.go index 297d76d4aa..1412f6cfef 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -610,6 +610,12 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) { shownIssues = int(issueStats.ClosedCount) ctx.Data["TotalIssueCount"] = shownIssues } + if len(repoIDs) != 0 { + shownIssues = 0 + for _, repoID := range repoIDs { + shownIssues += int(issueCountByRepo[repoID]) + } + } ctx.Data["IsShowClosed"] = isShowClosed |