From c481c15a4fedd13b7f0f96d519313f744a425421 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 18 Apr 2017 13:53:54 -0400 Subject: [PATCH] Bug 18423 - Add 'Add child' button to files, housebound, and deletemem pages Signed-off-by: Jonathan Druart --- members/deletemem.pl | 2 ++ members/files.pl | 1 + 2 files changed, 3 insertions(+) diff --git a/members/deletemem.pl b/members/deletemem.pl index 2c0db7092f..7543a4a49d 100755 --- a/members/deletemem.pl +++ b/members/deletemem.pl @@ -111,6 +111,8 @@ if ($countissues > 0 or $flags->{'CHARGES'} or $data->{'borrowernumber'} or $de 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'}, diff --git a/members/files.pl b/members/files.pl index 3aa6aa7b07..4f28f1fbef 100755 --- a/members/files.pl +++ b/members/files.pl @@ -119,6 +119,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(), -- 2.39.5