From 480950ac573f67016c1db6db303199a32eea4d65 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 23ec7a07fc..02560055f0 100644 --- a/Koha/REST/Plugin/Pagination.pm +++ b/Koha/REST/Plugin/Pagination.pm @@ -63,7 +63,7 @@ If page size is omitted, it defaults to the value of the RESTdefaultPageSize sys 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.11.0