From 9080d402ff14b363b8566839fe88d8bd4d0363b2 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 --- tools/batchMod.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index c6c424f..d3c8d50 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.1.4