Fix for itemissues, fetching the right dates for last borrowers for use on

the moredetail.pl page
This commit is contained in:
rangi 2002-08-15 02:04:59 +00:00
parent 473629ea97
commit a5349c29ea
1 changed files with 2 additions and 1 deletions

View File

@ -1119,7 +1119,8 @@ and issues.borrowernumber = borrowers.borrowernumber";
$query2 = "select * from issues, borrowers
where itemnumber = '$data->{'itemnumber'}'
and issues.borrowernumber = borrowers.borrowernumber
order by date_due desc";
and returndate is not NULL
order by returndate desc, timestamp desc";
$sth2 = $dbh->prepare($query2)
|| die $dbh->errstr;
$sth2->execute