mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08: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:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user