]> git.koha-community.org Git - koha.git/commit
Bug 23679: fix software error when trying to transfer an unknown barcode
authorFridolin Somers <fridolin.somers@biblibre.com>
Thu, 26 Sep 2019 07:09:15 +0000 (09:09 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 13 Nov 2019 22:34:51 +0000 (22:34 +0000)
commit59cbf5ab537e18c6167348aa52541a97b2c7df9d
tree5354a1425234aea97bb1ecced4429bf495f7aba0
parent67a1152b3f0354a25156a227918269999ea1d2f8
Bug 23679: fix software error when trying to transfer an unknown barcode

When trying to transfer an unknown barcode in
/cgi-bin/koha/circ/branchtransfers.pl you get the error :

Can't call method "itemnumber" on an undefined value at
/home/koha/src/C4/Circulation.pm line 319.

This comes from C4::Circulation::transferbook which should stop when
finding unknown barcode.

Test plan :
1) Go to /cgi-bin/koha/circ/branchtransfers.pl
2) Enter a barcode not existing in database
3) Without patch you get a software error, with patch you get a message
   saying 'No Item with barcode'
4) Enter a barcode existing in database and check transfer is OK

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Bin Wen <bin.wen@inlibro.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 3848a3a772e2202ac3339bd241adcef987e48361)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 43f15f13123c705bb750af43a74997e581b48719)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Circulation.pm