From 6d55462f1b2cb4840333f9e3830de3084a39a30e 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=utf8 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 Signed-off-by: Owen Leonard Signed-off-by: Martin Renvoize --- tools/batchMod.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index 3da1efb80c..f9fb0a5f7c 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -632,7 +632,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.39.5