From 4e8f0efb763d3188d9441be585386933a106fc36 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 18 Nov 2019 11:29:46 +0100 Subject: [PATCH] Bug 24051: Remove "search( %condition ) is deprecated" warning from batchMod.pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test plan: Go to Home › Tools › Batch item modification Insert barcodes and continue => Without this patch you will get warning in the log => With this patch applied you warning does no longer appear Confirm that the number of holds is correct --- tools/batchMod.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index 2e6473784c..d5b7522ad1 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -592,7 +592,7 @@ sub BuildItemsData{ $this_row{isbn} = $biblio->biblioitem->isbn; $this_row{biblionumber} = $biblio->biblionumber; $this_row{holds} = $biblio->holds->count; - $this_row{item_holds} = Koha::Holds->search( itemnumber => $itemnumber )->count; + $this_row{item_holds} = Koha::Holds->search( { itemnumber => $itemnumber } )->count; if (%this_row) { push(@big_array, \%this_row); -- 2.11.0