From d833b9f957b5b537dd831ad4d9296b6163db2ba9 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 --- tools/batchMod.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index d7e532e2a8..5acfa61fba 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -588,7 +588,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.20.1