From 8d8102cdc39f9dbcc3c1e6368b6c3317b043bb48 Mon Sep 17 00:00:00 2001 From: rangi Date: Thu, 11 Sep 2003 22:03:43 +0000 Subject: [PATCH] Fix for showing the current borrower on the moredetail.pl page --- C4/Search.pm | 1 + moredetail.pl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 7351c9ec86..d826013434 100755 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -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'; diff --git a/moredetail.pl b/moredetail.pl index 328cb6e429..209be72c25 100755 --- a/moredetail.pl +++ b/moredetail.pl @@ -97,7 +97,7 @@ foreach my $item (@items){ if ($item->{'date_due'} eq 'Available'){ $item->{'issue'}="Available
"; } else { - $item->{'issue'}="Currently on issue to: {'borrower0'}>$item->{'card'}
"; + $item->{'issue'}="Currently on issue to: {'borrower'}>$item->{'card'}
"; } } -- 2.39.5