View | Details | Raw Unified | Return to bug 18403
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-1 / +8 lines)
Lines 415-421 $(document).ready(function() { Link Here
415
 [% ELSE %]
415
 [% ELSE %]
416
 <li id="contact-details" style="display: none">
416
 <li id="contact-details" style="display: none">
417
 [% END %]
417
 [% END %]
418
     <span class="label">Patron #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
418
     <span class="label">Patron #:</span>
419
     [% IF guarantorid %]
420
        [% IF logged_in_user.can_see_patron_infos( guarantor ) %]
421
            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>
422
        [% ELSE %]
423
            [% guarantorid %]
424
        [% END %]
425
    [% END %]
419
 </li>
426
 </li>
420
        [% UNLESS nocontactname %]
427
        [% UNLESS nocontactname %]
421
 <li>
428
 <li>
(-)a/members/memberentry.pl (-2 / +4 lines)
Lines 740-749 $template->param( Link Here
740
  check_member    => $check_member,#to know if the borrower already exist(=>1) or not (=>0) 
740
  check_member    => $check_member,#to know if the borrower already exist(=>1) or not (=>0) 
741
  "op$op"   => 1);
741
  "op$op"   => 1);
742
742
743
$guarantorid = $borrower_data->{'guarantorid'} || $guarantorid;
744
my $guarantor = $guarantorid ? Koha::Patrons->find( $guarantorid ) : undef;
743
$template->param(
745
$template->param(
744
  nodouble  => $nodouble,
746
  nodouble  => $nodouble,
745
  borrowernumber  => $borrowernumber, #register number
747
  borrowernumber  => $borrowernumber, #register number
746
  guarantorid => ($borrower_data->{'guarantorid'} || $guarantorid),
748
  guarantor   => $guarantor,
749
  guarantorid => $guarantorid,
747
  relshiploop => \@relshipdata,
750
  relshiploop => \@relshipdata,
748
  btitle=> $default_borrowertitle,
751
  btitle=> $default_borrowertitle,
749
  guarantorinfo   => $guarantorinfo,
752
  guarantorinfo   => $guarantorinfo,
750
- 

Return to bug 18403