Skip to content

Commit

Permalink
Do not override API issue pagination with UI settings (#12068)
Browse files Browse the repository at this point in the history
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
  • Loading branch information
3 people authored Jun 27, 2020
1 parent 9ad0424 commit 2281b04
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions routers/api/v1/repo/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,6 @@ func ListIssues(ctx *context.APIContext) {
}

listOptions := utils.GetListOptions(ctx)
if ctx.QueryInt("limit") == 0 {
listOptions.PageSize = setting.UI.IssuePagingNum
}

var isPull util.OptionalBool
switch ctx.Query("type") {
Expand Down

0 comments on commit 2281b04

Please sign in to comment.