From 96f442badd65f672ddc2ba425e851e11a42112ad Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 11 Dec 2017 17:42:15 -0300 Subject: [PATCH] Bug 19278: (follow-up) Make the pagination plugin use RESTdefaultPageSize Use 20 as default for RESTdefaultPageSize (just in case) Signed-off-by: Jonathan Druart --- Koha/REST/Plugin/Pagination.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/REST/Plugin/Pagination.pm b/Koha/REST/Plugin/Pagination.pm index 1964ac54c5..c18208da56 100644 --- a/Koha/REST/Plugin/Pagination.pm +++ b/Koha/REST/Plugin/Pagination.pm @@ -61,7 +61,7 @@ It also adds X-Total-Count, containing the total results count. my $total = $args->{total}; my $req_page = $args->{params}->{_page}; my $per_page = $args->{params}->{_per_page} // - C4::Context->preference('RESTdefaultPageSize'); + C4::Context->preference('RESTdefaultPageSize') // 20; # do we need to paginate? return $c unless $req_page; -- 2.39.5