@@ -, +, @@
- Create a kid from your library group
- With a superlibrarian staff user create a guarantor that is outside of
- Login with a limited staff user and confirm that on the patron detail
---
.../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 9 ++++++++-
members/memberentry.pl | 5 ++++-
2 files changed, 12 insertions(+), 2 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
@@ -415,7 +415,14 @@ $(document).ready(function() {
[% ELSE %]
[% END %]
- Patron #: [% IF ( guarantorid ) %] [% guarantorid %][% END %]
+ Patron #:
+ [% IF guarantorid %]
+ [% IF logged_in_user.can_see_patron_infos( guarantor ) %]
+ [% guarantorid %]
+ [% ELSE %]
+ [% guarantorid %]
+ [% END %]
+ [% END %]
[% UNLESS nocontactname %]
--- a/members/memberentry.pl
+++ a/members/memberentry.pl
@@ -740,10 +740,13 @@ $template->param(
check_member => $check_member,#to know if the borrower already exist(=>1) or not (=>0)
"op$op" => 1);
+$guarantorid = $borrower_data->{'guarantorid'} || $guarantorid;
+my $guarantor = $guarantorid ? Koha::Patrons->find( $guarantorid ) : undef;
$template->param(
nodouble => $nodouble,
borrowernumber => $borrowernumber, #register number
- guarantorid => ($borrower_data->{'guarantorid'} || $guarantorid),
+ guarantor => $guarantor,
+ guarantorid => $guarantorid,
relshiploop => \@relshipdata,
btitle=> $default_borrowertitle,
guarantorinfo => $guarantorinfo,
--