Bug 29114: Trim whitespace before the barcode
authorAndrii Veremeienko <averemeienko@jabra.com>
Fri, 29 Oct 2021 13:44:19 +0000 (16:44 +0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 18 Jul 2022 18:10:17 +0000 (15:10 -0300)
commitc4ee39bf3aa8f1077ec925630e70e22aa2f35f6a
treedc99ad23e01f8bc9399544850143db47cd3cb42f
parent325d783419fd539ea596bf1f0a1ddc1b3ace66e2
Bug 29114: Trim whitespace before the barcode

The solution was to add regexp that trims all whitespaces.

How to test:
1. Go to the koha/virtualshelves/shelves.pl;
2. Add new list or edit existing one;
3. Start adding new items;
4. In the "Barcode" field add barcode(s) with whitespaces before them;
5. Observe that it wasn't added as the barcode isn't recognized because of whitespaces;
6. Apply the patch;
7. Repeat step 4;
8. Observe that the item was successfully added;

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
virtualshelves/shelves.pl