Revert "Bug 33496: (follow-up) Correct param names"

This reverts commit f0e208c1e7.
This commit is contained in:
Matt Blenkinsop 2023-07-19 10:52:30 +01:00
parent 516e389b9c
commit 87559c60f0
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 $search_params = { -or => [biblionumber => $self->id] };
push @{$search_params->{'-or'}}, itemnumber => { -in => $host_itemnumbers } if $host_itemnumbers;
my $params = { -or => [biblionumber => $self->id] };
push @{$params->{'-or'}}, itemnumber => { -in => $host_itemnumbers } if $host_itemnumbers;
return Koha::Items->search($search_params);
return Koha::Items->search($params);
}
=head3 host_items