Fix for showing the current borrower on the moredetail.pl page

This commit is contained in:
rangi 2003-09-11 22:03:43 +00:00
parent bbd3b3c79c
commit 8d8102cdc3
2 changed files with 2 additions and 1 deletions

View File

@ -1649,6 +1649,7 @@ and issues.borrowernumber = borrowers.borrowernumber";
if (my $data2 = $sth2->fetchrow_hashref) {
$data->{'date_due'} = $data2->{'date_due'};
$data->{'card'} = $data2->{'cardnumber'};
$data->{'borrower'} = $data2->{'borrowernumber'};
} else {
if ($data->{'wthdrawn'} eq '1') {
$data->{'date_due'} = 'Cancelled';

View File

@ -97,7 +97,7 @@ foreach my $item (@items){
if ($item->{'date_due'} eq 'Available'){
$item->{'issue'}="<b>Available</b><br>";
} else {
$item->{'issue'}="<b>Currently on issue to:</b> <a href=/cgi-bin/koha/moremember.pl?bornum=$item->{'borrower0'}>$item->{'card'}</a><br>";
$item->{'issue'}="<b>Currently on issue to:</b> <a href=/cgi-bin/koha/moremember.pl?bornum=$item->{'borrower'}>$item->{'card'}</a><br>";
}
}