Bugzilla – Attachment 106277 Details for
Bug 25570
Listing requests should be paginated by default
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25570: Allow "all", -1
Bug-25570-Allow-all--1.patch (text/plain), 955 bytes, created by
Jonathan Druart
on 2020-06-25 08:10:17 UTC
(
hide
)
Description:
Bug 25570: Allow "all", -1
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-06-25 08:10:17 UTC
Size:
955 bytes
patch
obsolete
>From 6a9c0150812be8c4e7da87a1c81814ac202b52a5 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 25 Jun 2020 10:09:46 +0200 >Subject: [PATCH] Bug 25570: Allow "all", -1 > >--- > Koha/REST/Plugin/Objects.pm | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/Koha/REST/Plugin/Objects.pm b/Koha/REST/Plugin/Objects.pm >index c743e9da17..3c83020fba 100644 >--- a/Koha/REST/Plugin/Objects.pm >+++ b/Koha/REST/Plugin/Objects.pm >@@ -69,6 +69,11 @@ sub register { > $reserved_params->{_per_page} //= C4::Context->preference('RESTdefaultPageSize'); > $reserved_params->{_page} //= 1; > >+ if ( $reserved_params->{_per_page} == -1 ) { >+ delete $reserved_params->{_per_page}; >+ delete $reserved_params->{_page}; >+ } >+ > # Merge pagination into query attributes > $c->dbic_merge_pagination( > { >-- >2.20.1
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 25570
:
105229
|
105230
|
105231
|
105248
|
105249
|
105250
|
106070
|
106071
|
106072
| 106277