Lines 62-70
my $patron = Koha::Patrons->find($borrowernumber);
Link Here
|
62 |
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); |
62 |
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); |
63 |
|
63 |
|
64 |
# Get supporting cast |
64 |
# Get supporting cast |
65 |
my ( $branch, $category, $houseboundprofile, $visit ); |
65 |
my ( $branch, $houseboundprofile, $visit ); |
66 |
if ( $patron ) { # FIXME This test is not needed - output_and_exit_if_error handles it |
66 |
if ( $patron ) { # FIXME This test is not needed - output_and_exit_if_error handles it |
67 |
$category = Koha::Patron::Categories->new->find($patron->categorycode); |
|
|
68 |
$houseboundprofile = $patron->housebound_profile; |
67 |
$houseboundprofile = $patron->housebound_profile; |
69 |
} |
68 |
} |
70 |
if ( $visit_id ) { |
69 |
if ( $visit_id ) { |
Lines 167-173
if ( C4::Context->preference('ExtendedPatronAttributes') and $patron ) {
Link Here
|
167 |
); |
166 |
); |
168 |
} |
167 |
} |
169 |
|
168 |
|
170 |
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' ); |
|
|
171 |
$template->param( |
169 |
$template->param( |
172 |
housebound_profile => $houseboundprofile, |
170 |
housebound_profile => $houseboundprofile, |
173 |
visit => $houseboundvisit, |
171 |
visit => $houseboundvisit, |