From 12b440276080e453061f699e85dfeca072920c1a Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 21 Oct 2010 23:01:34 -0400 Subject: [PATCH] bug 3597: DelItemCheck now refuses to delete items in transit for holds Signed-off-by: Galen Charlton --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index 794bff70d9..264fa5b331 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -2005,7 +2005,7 @@ sub DelItemCheck { $error = "book_on_loan" }else{ # check it doesnt have a waiting reserve - $sth=$dbh->prepare("SELECT * FROM reserves WHERE found = 'W' AND itemnumber = ?"); + $sth=$dbh->prepare("SELECT * FROM reserves WHERE (found = 'W' or found = 'T') AND itemnumber = ?"); $sth->execute($itemnumber); my $reserve=$sth->fetchrow; if ($reserve){ -- 2.39.5