mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-25 11:16:11 +01:00
Do not override API issue pagination with UI settings (#12068)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
9ad04240a6
commit
2281b048af
|
@ -290,9 +290,6 @@ func ListIssues(ctx *context.APIContext) {
|
||||||
}
|
}
|
||||||
|
|
||||||
listOptions := utils.GetListOptions(ctx)
|
listOptions := utils.GetListOptions(ctx)
|
||||||
if ctx.QueryInt("limit") == 0 {
|
|
||||||
listOptions.PageSize = setting.UI.IssuePagingNum
|
|
||||||
}
|
|
||||||
|
|
||||||
var isPull util.OptionalBool
|
var isPull util.OptionalBool
|
||||||
switch ctx.Query("type") {
|
switch ctx.Query("type") {
|
||||||
|
|
Loading…
Reference in a new issue