Changing signature for NewIssue
[koha.git] / C4 / Circulation / Fines.pm
index 5c1bbf8..1907c3d 100644 (file)
@@ -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;