Bug 21183: Fix ->get_column call context

I am not sure to understand what's going on here.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2018-08-16 12:12:11 -03:00 committed by Nick Clemens
parent 2b1b168ec4
commit ec257ca25b

View file

@ -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;
}
}