]> git.koha-community.org Git - koha.git/commit
Bug 23006: Cannot use inventory with barcodes containing special chars
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 29 May 2019 13:46:15 +0000 (13:46 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 10 Jun 2019 14:47:13 +0000 (16:47 +0200)
commitc868ccc360189d0b5ea5b7c096ba325a304070d0
tree0e72689ffe5f46946866ed2caa9762c37f11992d
parent67bddf78e245e5ef2dfe1c3040e5c820124a3b99
Bug 23006: Cannot use inventory with barcodes containing special chars

If a barcode contains special characters like $, the regex in inventory
does no longer work.
This fix (as suggested by Jonathan) replaces the regex by a eq compare.

Test plan:
Pick one barcode and add a $ somewhere in the middle, say 123$456.
Include this barcode in a barcode file for inventory.
Run inventory on that file and verify that barcode was read and datelastseen
was updated. The barcode should not be reported as missing (not scanned).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 851d41ab6b9ec28901086d6a6ce15b3fd589182a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
tools/inventory.pl