From 3e7160679186007181a1ccf550b119d183358b5c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 14 Apr 2023 12:40:55 +0000 Subject: [PATCH] Bug 33496: (follow-up) Correct param names Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- Koha/Biblio.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm index 26e72a051d..de5e0ecf9b 100644 --- a/Koha/Biblio.pm +++ b/Koha/Biblio.pm @@ -477,10 +477,10 @@ sub items { return Koha::Items->_new_from_dbic( $items_rs ) unless $params->{host_items}; my $host_itemnumbers = $self->_host_itemnumbers(); - my $params = { -or => [biblionumber => $self->id] }; - push @{$params->{'-or'}}, itemnumber => { -in => $host_itemnumbers } if $host_itemnumbers; + my $search_params = { -or => [biblionumber => $self->id] }; + push @{$search_params->{'-or'}}, itemnumber => { -in => $host_itemnumbers } if $host_itemnumbers; - return Koha::Items->search($params); + return Koha::Items->search($search_params); } =head3 host_items -- 2.30.2