@@ -, +, @@ - 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 --- circ/returns.pl | 2 ++ 1 file changed, 2 insertions(+) --- a/circ/returns.pl +++ a/circ/returns.pl @@ -551,6 +551,8 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { } my $item = Koha::Items->find({ barcode => $bar_code }); + next unless $item; # FIXME The item has been deleted in the meantime, + # we could handle that better displaying a message in the template my $biblio = $item->biblio; # FIXME pass $item to the template and we are done here... $ri{itembiblionumber} = $biblio->biblionumber; --