From 95a6a7b222813f3a61406c8a3b53ecd9067e655b Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Wed, 17 Oct 2018 19:46:37 +0000 Subject: [PATCH] Bug 19532: Fixed Internal Server error thrown upon returning recalled item Sponsored-By: Toi Ohomai Institute of Technology, New Zealand --- C4/Circulation.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 4e3e71a..fba99bc 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2061,9 +2061,12 @@ sub AddReturn { # if we don't have a reserve with the status W, we launch the Checkreserves routine my $lookahead= C4::Context->preference('ConfirmFutureHolds'); #number of days to look for future holds ($resfound, $resrec, undef) = C4::Reserves::CheckReserves( $item->{'itemnumber'}, undef, $lookahead ) unless ( $item->{'withdrawn'} ); + warn $issue; + warn $resrec; if ($resfound) { $resrec->{'ResFound'} = $resfound; $messages->{'ResFound'} = $resrec; + } } # Record the fact that this book was returned. @@ -4150,7 +4153,6 @@ sub _CalculateAndUpdateFine { } } -} 1; __END__ -- 2.1.4