From ec257ca25baf19e3895abb2c4061af7592a2b9b4 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 Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- tools/batchMod.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index c6c424fe99..d3c8d5060b 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -267,7 +267,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.20.1