Skip to content

Commit

Permalink
Fixing wrong pageing when filtering on the issue dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Mai-Lapyst committed May 26, 2022
1 parent 8720f87 commit 223afc4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions routers/web/user/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,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

Expand Down

0 comments on commit 223afc4

Please sign in to comment.