Bug 7408 - Don't cancel found reserves.

At the moment, a reserve will be canceled if it has passed its
expiration date, even if the item is waiting or in the process
of being transferred. The situation could arise where someone
has a hold filled, but it is canceled while in transit, or before
the borrower can pick it up.
This commit is contained in:
Kyle Hall 2012-03-08 14:45:56 -05:00 committed by Paul Poulain
parent b32c38f9f1
commit 4fc6759d0c

View file

@ -866,6 +866,7 @@ sub CancelExpiredReserves {
my $sth = $dbh->prepare( "
SELECT * FROM reserves WHERE DATE(expirationdate) < DATE( CURDATE() )
AND expirationdate IS NOT NULL
AND found IS NULL
" );
$sth->execute();