[Koha-bugs] [Bug 18659] New: Barcode input filter not taken into consideration with batch

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 23 17:02:55 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18659

            Bug ID: 18659
           Summary: Barcode input filter not taken into consideration with
                    batch
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Circulation
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: philippe.blouin at inlibro.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

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.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list