Bug 18423 - Add 'Add child' button to files, housebound, and deletemem pages
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
b689c6f9fe
commit
b81a18ea39
3 changed files with 4 additions and 0 deletions
|
@ -110,6 +110,8 @@ if ( $op eq 'delete_confirm' or $countissues > 0 or $flags->{'CHARGES'} or $is_
|
|||
my $patron_image = Koha::Patron::Images->find($bor->{borrowernumber});
|
||||
$template->param( picture => 1 ) if $patron_image;
|
||||
|
||||
$template->param( adultborrower => 1 ) if ( $bor->{category_type} eq 'A' );
|
||||
|
||||
$template->param(borrowernumber => $member,
|
||||
surname => $bor->{'surname'},
|
||||
title => $bor->{'title'},
|
||||
|
|
|
@ -117,6 +117,7 @@ else {
|
|||
my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
|
||||
$template->param( picture => 1 ) if $patron_image;
|
||||
|
||||
$template->param( adultborrower => 1 ) if ( $data->{category_type} eq 'A' );
|
||||
$template->param(
|
||||
files => Koha::Patron::Files->new( borrowernumber => $borrowernumber )
|
||||
->GetFilesInfo(),
|
||||
|
|
|
@ -171,6 +171,7 @@ if ( C4::Context->preference('ExtendedPatronAttributes') and $patron ) {
|
|||
);
|
||||
}
|
||||
|
||||
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' );
|
||||
$template->param(
|
||||
picture => $patron_image,
|
||||
housebound_profile => $houseboundprofile,
|
||||
|
|
Loading…
Reference in a new issue