]> git.koha-community.org Git - koha.git/commit
Bug 21168: Handle deleted checked-in items on checking in
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 10 Aug 2018 20:02:38 +0000 (17:02 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 24 Sep 2018 07:04:24 +0000 (09:04 +0200)
commitb829bde8601b1d5651dc5d4425350a96944ce7a9
tree707cfca72b0e708f8777250b5bed5cd1412036df
parente28ef43417a0b72887e975ee2f1f92e9a3476bee
Bug 21168: Handle deleted checked-in items on checking in

circ/returns.pl generates a server error when attempting to checkin an item while
the list of previously-returned items contains an item that has been deleted.
Error text: Can't call method "biblio" on an undefined value at /usr/share/koha/intranet/cgi-bin/circ/returns.pl line 606.

Test plan:
- checkout two items
- checkin item1
- on a separate tab, delete item1
- on the original tab (which still shows item1 in the list of Checked-In Items), attempt to check in item2
=> No error appears

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 823c76cdc58b7b80b365a4f313fed3462f0df720)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit a87364d0ffbf906a4888f5d6d66e1a74cf280f58)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
circ/returns.pl