Bugzilla – Attachment 133262 Details for
Bug 30526
The pagination in the REST API does not work if $c->objects->search is called multiple times.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30526: Copy parameters when building links in rest api.
Bug-30526-Copy-parameters-when-building-links-in-r.patch (text/plain), 833 bytes, created by
Andreas Jonsson
on 2022-04-13 14:09:26 UTC
(
hide
)
Description:
Bug 30526: Copy parameters when building links in rest api.
Filename:
MIME Type:
Creator:
Andreas Jonsson
Created:
2022-04-13 14:09:26 UTC
Size:
833 bytes
patch
obsolete
>From 88e22f40488842ec020324b53b973e94387d6e84 Mon Sep 17 00:00:00 2001 >From: Andreas Jonsson <andreas.jonsson@kreablo.se> >Date: Wed, 13 Apr 2022 16:08:04 +0200 >Subject: [PATCH] Bug 30526: Copy parameters when building links in rest api. > >--- > 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 90d220c1cf..29195551c4 100644 >--- a/Koha/REST/Plugin/Pagination.pm >+++ b/Koha/REST/Plugin/Pagination.pm >@@ -160,7 +160,7 @@ Returns a string, suitable for using in Link headers following RFC5988. > sub _build_link { > my ( $c, $args ) = @_; > >- my $params = $args->{params}; >+ my $params = { $args->{params} }; > > $params->{_page} = $args->{page}; > $params->{_per_page} = $args->{per_page}; >-- >2.30.2
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 30526
: 133262