Lines 74-80
my $patron = Koha::Patrons->find( $borrowernumber );
Link Here
|
74 |
my $logged_in_user = Koha::Patrons->find( $loggedinuser ); |
74 |
my $logged_in_user = Koha::Patrons->find( $loggedinuser ); |
75 |
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); |
75 |
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); |
76 |
|
76 |
|
77 |
my $category_type = $patron->category->category_type; |
77 |
my $category = $patron->category; |
|
|
78 |
my $category_type = $category->category_type; |
78 |
|
79 |
|
79 |
if ( $patron->borrowernumber eq C4::Context->preference("AnonymousPatron") ) { |
80 |
if ( $patron->borrowernumber eq C4::Context->preference("AnonymousPatron") ) { |
80 |
$template->param( is_anonymous => 1 ); |
81 |
$template->param( is_anonymous => 1 ); |
Lines 117-122
$template->param(
Link Here
|
117 |
guarantor_relationships => $guarantor_relationships, |
118 |
guarantor_relationships => $guarantor_relationships, |
118 |
guarantees => \@guarantees, |
119 |
guarantees => \@guarantees, |
119 |
); |
120 |
); |
|
|
121 |
if ( C4::Context->preference('ChildNeedsGuarantor') |
122 |
and ( $patron->is_child or $category->can_be_guarantee ) |
123 |
and $patron->contactname eq "" |
124 |
and !@guarantors ) |
125 |
{ |
126 |
$template->param( missing_guarantor => 1 ); |
127 |
} |
120 |
|
128 |
|
121 |
my $relatives_issues_count = |
129 |
my $relatives_issues_count = |
122 |
Koha::Checkouts->count({ borrowernumber => \@relatives }); |
130 |
Koha::Checkouts->count({ borrowernumber => \@relatives }); |
123 |
- |
|
|