Fixed bug #405
authorwolfpac444 <wolfpac444>
Thu, 8 May 2003 14:12:29 +0000 (14:12 +0000)
committerwolfpac444 <wolfpac444>
Thu, 8 May 2003 14:12:29 +0000 (14:12 +0000)
C4/Search.pm
koha-tmpl/intranet-tmpl/default/en/members/moremember.tmpl
moremember.pl

index 8ee2df0..e192de5 100755 (executable)
@@ -84,7 +84,7 @@ of references to hash, which gives the actual results.
 sub findguarantees{
   my ($bornum)=@_;
   my $dbh = C4::Context->dbh;
-  my $query="select cardnumber,borrowernumber from borrowers where
+  my $query="select cardnumber,borrowernumber, firstname, surname from borrowers where
   guarantor='$bornum'";
   my $sth=$dbh->prepare($query);
   $sth->execute;
index 2cfba5b..ad66028 100644 (file)
@@ -46,7 +46,7 @@
                Relationship: <TMPL_VAR NAME="altrelationship"><BR>
                Notes: <TMPL_VAR NAME="altnotes"><P>
                <TMPL_IF NAME="isguarantee">
-                       Guarantees:<TMPL_LOOP NAME="guaranteeloop"><A HREF="/cgi-bin/koha/moremember.pl?bornum=<TMPL_VAR NAME="borrowernumber">"><TMPL_VAR NAME="cardnumber"></a><br></TMPL_LOOP>
+                       Guarantees:<br><TMPL_LOOP NAME="guaranteeloop"><A HREF="/cgi-bin/koha/moremember.pl?bornum=<TMPL_VAR NAME="borrowernumber">"><TMPL_VAR NAME=name> - <TMPL_VAR NAME="cardnumber"></a><br></TMPL_LOOP>
                <TMPL_ELSE>
                        Guarantor:
                        <TMPL_IF NAME="guarantorborrowernumber">
index b808aaf..2451be4 100755 (executable)
@@ -99,7 +99,8 @@ if ($data->{'categorycode'} ne 'C'){
   my @guaranteedata;
   for (my $i=0;$i<$count;$i++){
     push (@guaranteedata, {borrowernumber => $guarantees->[$i]->{'borrowernumber'},
-                          cardnumber => $guarantees->[$i]->{'cardnumber'}});
+                          cardnumber => $guarantees->[$i]->{'cardnumber'},
+                          name => $guarantees->[$i]->{'firstname'} . " " . $guarantees->[$i]->{'surname'}});
   }
   $template->param(guaranteeloop => \@guaranteedata);