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 commit1d4182a944) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commitf0e208c1e7) Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
parent
9d2f2a8124
commit
b43ff23b92
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue