mirror of
https://github.com/go-gitea/gitea
synced 2024-12-26 15:54:33 +01:00
Fixing wrong paging when filtering on the issue dashboard (#19801)
Fixes #19791 by adding an check if filtering after any repo; if yes, simply set the total count for the pageing to the sum of the issue count for each selected repo by utilize `issueCountByRepo`. Fix #19791
This commit is contained in:
parent
744e452185
commit
090d89e0f9
1 changed files with 6 additions and 0 deletions
|
@ -610,6 +610,12 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) {
|
||||||
shownIssues = int(issueStats.ClosedCount)
|
shownIssues = int(issueStats.ClosedCount)
|
||||||
ctx.Data["TotalIssueCount"] = shownIssues
|
ctx.Data["TotalIssueCount"] = shownIssues
|
||||||
}
|
}
|
||||||
|
if len(repoIDs) != 0 {
|
||||||
|
shownIssues = 0
|
||||||
|
for _, repoID := range repoIDs {
|
||||||
|
shownIssues += int(issueCountByRepo[repoID])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ctx.Data["IsShowClosed"] = isShowClosed
|
ctx.Data["IsShowClosed"] = isShowClosed
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue