projects
/
koha-ffzg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a80a0a7
)
bug fix :
author
btoumi
<btoumi>
Mon, 21 May 2007 07:45:45 +0000
(07:45 +0000)
committer
btoumi
<btoumi>
Mon, 21 May 2007 07:45:45 +0000
(07:45 +0000)
add sql condition to recover only the right record from issues table
C4/Circulation/Fines.pm
patch
|
blob
|
history
diff --git
a/C4/Circulation/Fines.pm
b/C4/Circulation/Fines.pm
index
5c1bbf8
..
1907c3d
100644
(file)
--- a/
C4/Circulation/Fines.pm
+++ b/
C4/Circulation/Fines.pm
@@
-338,7
+338,7
@@
my $dbh = C4::Context->dbh;
my $query = qq|SELECT *
FROM issues
WHERE itemnumber=?
-|;
+
AND returndate IS NULL
|;
my $sth = $dbh->prepare($query);
$sth->execute($itemnumber);
my ($issuesinfo)=$sth->fetchrow_hashref;