]> git.koha-community.org Git - koha.git/commit
Bug 12045 - Transfer impossible if barcode includes spaces
authorChloe <chloealabaster@gmail.com>
Thu, 21 Jan 2016 23:47:42 +0000 (23:47 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Wed, 27 Jan 2016 14:36:03 +0000 (15:36 +0100)
commit8fa06fdfde407522d6f647527e1b3fefa52a154d
treef8cf525c612525904ebe97b472d806576c31325f
parent4739952294165f764ee7074f5a71235e328697a3
Bug 12045 - Transfer impossible if barcode includes spaces

have changed the code which strips the white space to only remove the leading and trailing white space instead

To Test-
1- go to circulation -> transfer
2- attempt to tranfer an item where the barcode has a space in the middle of it
3- it should fail
4- apply patch
5- try again
6- it should work

NOTE: I purposefully added: die "($barcode)";
      Before, all spaces were removed.
          '    white space    ' became '(whitespace)'
      After, only external spaces were remove
          '    white space    ' became '(white space)'

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 47caf69a469cb48ef18754d2e3bf077e5e882aa4)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
circ/branchtransfers.pl