From 4c151316147fc1d2dc5db613a98353b8fea469c4 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 24 Feb 2017 01:29:22 +0000 Subject: [PATCH] Bug 7663 (QA Followup) Ignore empty entries --- virtualshelves/shelves.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/virtualshelves/shelves.pl b/virtualshelves/shelves.pl index 3e03e6d..a6d04ce 100755 --- a/virtualshelves/shelves.pl +++ b/virtualshelves/shelves.pl @@ -145,6 +145,7 @@ if ( $op eq 'add_form' ) { my @barcodes = split /\n/, $barcodes; # Entries are effectively passed in as a separated list foreach my $barcode (@barcodes){ $barcode =~ s/\r$//; # strip any naughty return chars + next if $barcode eq ''; my $item = GetItem( 0, $barcode); if (defined $item && $item->{itemnumber}) { my $biblio = GetBiblioFromItemNumber( $item->{itemnumber} ); -- 2.1.4