bugfix: Sort previous borrowers descending in Items.pm for moredetail.pl
The list of previous borrowers on moredetail.pl shows the three oldest rather than the three most recent as I expected. This changes the sql to order descending so we get the three most recent. Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
7c59177092
commit
5076ee4251
1 changed files with 1 additions and 0 deletions
|
@ -1295,6 +1295,7 @@ sub GetItemsInfo {
|
|||
my $sth2 = $dbh->prepare("SELECT * FROM old_issues,borrowers
|
||||
WHERE itemnumber = ?
|
||||
AND old_issues.borrowernumber = borrowers.borrowernumber
|
||||
ORDER BY returndate DESC
|
||||
LIMIT 3");
|
||||
$sth2->execute($data->{'itemnumber'});
|
||||
my $ii = 0;
|
||||
|
|
Loading…
Reference in a new issue