diff --git a/Koha/BackgroundJob/BatchUpdateItem.pm b/Koha/BackgroundJob/BatchUpdateItem.pm index 71dd00ee05..48354836fd 100644 --- a/Koha/BackgroundJob/BatchUpdateItem.pm +++ b/Koha/BackgroundJob/BatchUpdateItem.pm @@ -104,7 +104,7 @@ sub process { }; try { - my ($results) = Koha::Items->search( { itemnumber => \@record_ids } )->batch_update( + my ($results) = Koha::Items->search( { itemnumber => { -in => \@record_ids } } )->batch_update( { regex_mod => $regex_mod, new_values => $new_values, diff --git a/Koha/Items.pm b/Koha/Items.pm index 12e383a793..c47753c2cb 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -599,7 +599,8 @@ sub batch_update { if (@modified_itemnumbers) { my @biblionumbers = - uniq( Koha::Items->search( { itemnumber => \@modified_itemnumbers } )->get_column('biblionumber') ); + uniq( + Koha::Items->search( { itemnumber => { -in => \@modified_itemnumbers } } )->get_column('biblionumber') ); if (@biblionumbers) { my $indexer = Koha::SearchEngine::Indexer->new( { index => $Koha::SearchEngine::BIBLIOS_INDEX } ); diff --git a/Koha/Patrons.pm b/Koha/Patrons.pm index 425893e8d4..34a42a501a 100644 --- a/Koha/Patrons.pm +++ b/Koha/Patrons.pm @@ -716,7 +716,7 @@ sub filter_by_safe_to_delete { push @ids, $patron->borrowernumber if $patron->safe_to_delete; } - return Koha::Patrons->search( { borrowernumber => \@ids } ); + return Koha::Patrons->search( { borrowernumber => { -in => \@ids } } ); } =head3 extended_attributes_config