[Koha-bugs] [Bug 22204] Leading spaces in barcode should not allowed in cataloguing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 14 12:38:29 CEST 2021


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

--- Comment #3 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 126266
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126266&action=edit
Bug 22204: Remove whitespaces in barcode before saving

Test plan:
1. Create an item with barcode "1"
2. Try to create an item with barcode "   1   " and verify that it is
   blocked
3. Create an item with barcode "  XXXXX  " and verify that it is saved
   without spaces in database:
   SELECT barcode FROM items WHERE barcode LIKE '%XXXXX%'

Co-authored-by: Jérémy Breuillard <jeremy.breuillard at biblibre.com>

-- 
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