[Koha-bugs] [Bug 29114] Can not add barcodes with whitespaces at the beginning to the list
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Oct 26 08:29:35 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29114
Andrii Veremeienko <andriiverem at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #125815|0 |1
is obsolete| |
--- Comment #13 from Andrii Veremeienko <andriiverem at gmail.com> ---
Created attachment 126867
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126867&action=edit
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;
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list