Bugzilla – Attachment 69704 Details for
Bug 19278
Add a configurable default page size for endpoints
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19278: (follow-up) Make the pagination plugin use RESTdefaultPageSize
Bug-19278-follow-up-Make-the-pagination-plugin-use.patch (text/plain), 1.16 KB, created by
Jonathan Druart
on 2017-12-11 20:43:24 UTC
(
hide
)
Description:
Bug 19278: (follow-up) Make the pagination plugin use RESTdefaultPageSize
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-12-11 20:43:24 UTC
Size:
1.16 KB
patch
obsolete
>From 480950ac573f67016c1db6db303199a32eea4d65 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <jonathan.druart@bugs.koha-community.org> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19278
:
66994
|
66995
|
66996
|
67341
|
67604
|
67605
|
67606
|
67607
|
67700
|
67701
|
67702
|
67703
|
67790
|
67791
|
67792
|
67793
|
69365
|
69366
|
69367
|
69368
| 69704