Skip to content

Commit

Permalink
Fix pagination limit parameter problem (#21111)
Browse files Browse the repository at this point in the history
backport #21109

Co-authored-by: 6543 <[email protected]>
  • Loading branch information
tyroneyeh and 6543 authored Sep 8, 2022
1 parent 31842f1 commit 2dcea78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/repo/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2dcea78

Please sign in to comment.