projects
/
koha_ffzg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
424127a
)
bug 3597: DelItemCheck now refuses to delete items in transit for holds
author
Galen Charlton
<gmcharlt@gmail.com>
Fri, 22 Oct 2010 03:01:34 +0000
(23:01 -0400)
committer
Galen Charlton
<gmcharlt@gmail.com>
Fri, 22 Oct 2010 03:01:34 +0000
(23:01 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Items.pm
patch
|
blob
|
history
diff --git
a/C4/Items.pm
b/C4/Items.pm
index
794bff7
..
264fa5b
100644
(file)
--- 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){