From 055124da87c15aa04f0a4393f0007aae8832c768 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 8 Mar 2012 14:45:56 -0500 Subject: [PATCH] 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. --- C4/Reserves.pm | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 635b3ad..7e300a8 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -864,7 +864,8 @@ sub CancelExpiredReserves { my $dbh = C4::Context->dbh; my $sth = $dbh->prepare( " SELECT * FROM reserves WHERE DATE(expirationdate) < DATE( CURDATE() ) - AND expirationdate IS NOT NULL + AND expirationdate IS NOT NULL + AND found IS NULL " ); $sth->execute(); -- 1.7.2.5