Lines 76-82
output_and_exit_if_error(
Link Here
|
76 |
{ module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } |
76 |
{ module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } |
77 |
); |
77 |
); |
78 |
|
78 |
|
79 |
my $category_type = $patron->category->category_type; |
79 |
my $category = $patron->category; |
|
|
80 |
my $category_type = $category->category_type; |
80 |
|
81 |
|
81 |
for (qw(gonenoaddress lost borrowernotes is_debarred)) { |
82 |
for (qw(gonenoaddress lost borrowernotes is_debarred)) { |
82 |
$patron->$_ and $template->param( flagged => 1 ) and last; |
83 |
$patron->$_ and $template->param( flagged => 1 ) and last; |
Lines 112-117
$template->param(
Link Here
|
112 |
guarantor_relationships => $guarantor_relationships, |
113 |
guarantor_relationships => $guarantor_relationships, |
113 |
guarantees => \@guarantees, |
114 |
guarantees => \@guarantees, |
114 |
); |
115 |
); |
|
|
116 |
if ( C4::Context->preference('ChildNeedsGuarantor') |
117 |
and ( $patron->is_child or $category->can_be_guarantee ) |
118 |
and $patron->contactname eq "" |
119 |
and !@guarantors ) |
120 |
{ |
121 |
$template->param( missing_guarantor => 1 ); |
122 |
} |
115 |
|
123 |
|
116 |
my $relatives_issues_count = Koha::Checkouts->count( { borrowernumber => \@relatives } ); |
124 |
my $relatives_issues_count = Koha::Checkouts->count( { borrowernumber => \@relatives } ); |
117 |
|
125 |
|
118 |
- |
|
|