Bug 33496: (follow-up) Correct param names

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 1d4182a944)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit f0e208c1e7)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
Nick Clemens 2023-04-14 12:40:55 +00:00 committed by Matt Blenkinsop
parent 9d2f2a8124
commit b43ff23b92
1 changed files with 3 additions and 3 deletions

View File

@ -478,10 +478,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