From 88e22f40488842ec020324b53b973e94387d6e84 Mon Sep 17 00:00:00 2001 From: Andreas Jonsson 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