From 9bfd9e53ef93d85f01d0de6f406ff161126ca871 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 Signed-off-by: Joy Nelson (cherry picked from commit d833b9f957b5b537dd831ad4d9296b6163db2ba9) Signed-off-by: Lucas Gass --- tools/batchMod.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index d5e0e2d36f..8929f0ecd7 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -594,7 +594,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