]> git.koha-community.org Git - koha.git/commit
Bug 29114: Trim whitespace before the barcode
authorAndrii Veremeienko <averemeienko@jabra.com>
Fri, 29 Oct 2021 13:44:19 +0000 (16:44 +0300)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 23 Aug 2022 19:29:20 +0000 (19:29 +0000)
commit1e54d08e64ac886e8c114a2e7b6c34c554116b07
tree5ed978421469cb07655cb69aac35830c73b95834
parent65292aaa86650257d6d47dfe134b177480c9f106
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>
(cherry picked from commit c4ee39bf3aa8f1077ec925630e70e22aa2f35f6a)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
virtualshelves/shelves.pl