From dc9376d111a442e41f6bcd19a6138b47a5fe8fb7 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. Signed-off-by: Josef Moravec --- tools/batchMod.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index 3af7274..e50054c 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.1.4