From 6a9e1d4215ab7b88144953690ece44a04cb8b0a3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Aug 2018 12:12:11 -0300 Subject: [PATCH] Bug 21183: Fix ->get_column call context I am not sure to understand what's going on here. --- tools/batchMod.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index 3af72744eb..e50054cd4c 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -266,7 +266,8 @@ if ($op eq "show"){ my $existing_items = Koha::Items->search({ barcode => \@barcodelist }); @itemnumbers = $existing_items->get_column('itemnumber'); - my %exists = map {$_=>1} @{$existing_items->get_column('barcode')}; + my @barcodes = $existing_items->get_column('barcode'); + my %exists = map {$_=>1} @barcodes; @notfoundbarcodes = grep { !$exists{$_} } @barcodelist; } } -- 2.11.0