From 2281b048af8837a33adfc9acfd3872022c789026 Mon Sep 17 00:00:00 2001 From: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> Date: Sat, 27 Jun 2020 23:09:24 +0200 Subject: [PATCH] Do not override API issue pagination with UI settings (#12068) Co-authored-by: Lunny Xiao Co-authored-by: techknowlogick --- routers/api/v1/repo/issue.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index a06448249..d7bd3cd35 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -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") {