mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix pagination limit parameter problem (#21109)
In commits list can use limit parameter to change, but pagination number is wrong
This commit is contained in:
		@@ -83,7 +83,7 @@ func Commits(ctx *context.Context) {
 | 
			
		||||
	ctx.Data["CommitCount"] = commitsCount
 | 
			
		||||
	ctx.Data["RefName"] = ctx.Repo.RefName
 | 
			
		||||
 | 
			
		||||
	pager := context.NewPagination(int(commitsCount), setting.Git.CommitsRangeSize, page, 5)
 | 
			
		||||
	pager := context.NewPagination(int(commitsCount), pageSize, page, 5)
 | 
			
		||||
	pager.SetDefaultParams(ctx)
 | 
			
		||||
	ctx.Data["Page"] = pager
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user