Skip to content

Commit 223afc4

Browse files
committed
Fixing wrong pageing when filtering on the issue dashboard
1 parent 8720f87 commit 223afc4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

routers/web/user/home.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,12 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) {
608608
shownIssues = int(issueStats.ClosedCount)
609609
ctx.Data["TotalIssueCount"] = shownIssues
610610
}
611+
if len(repoIDs) != 0 {
612+
shownIssues = 0
613+
for _, repoID := range repoIDs {
614+
shownIssues += int(issueCountByRepo[repoID])
615+
}
616+
}
611617

612618
ctx.Data["IsShowClosed"] = isShowClosed
613619

0 commit comments

Comments
 (0)