circulation.pl was modified to handle barcode batches, but the code modifying the barcode is isolated and does not modify the batch. for my $barcode ( @$barcodes ) { $barcode =~ s/^\s*|\s*$//g; # remove leading/trailing whitespace $barcode = barcodedecode($barcode) if( $barcode && C4::Context->preference('itemBarcodeInputFilter')); } The local $barcode is modified, but not the array content. The issuing code later on just start with @$barcodes again, not with $barcode, so the modif is not even considered when using one barcode.
Ok, this is a code 18. In normal circumstances (code not modified), would not happen. Code is ok. I would close it if I could, but can't. So here, Resolved-Invalid. Hope it's ok.