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:
parent
b32c38f9f1
commit
4fc6759d0c
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue