@@ -, +, @@ --- C4/Reserves.pm | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) --- a/C4/Reserves.pm +++ a/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(); --