From 8ce960d7099f72fef394f90d89baba368eabf2dd Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 19 Nov 2018 14:47:04 +0000 Subject: [PATCH] Bug 21649: [18.05.X] Pass guarantee info to template when adding child MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To test: 1 - Find an adult patron 2 - Click 'Add child' 3 - Note address/phone info does not carry over 4 - Apply patch 5 - Repeat 6 - Note information populates Signed-off-by: “Lucas Gass” --- members/memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index 95e38da279..f6e4fe96a2 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -770,7 +770,7 @@ $template->param( $guarantorid = $borrower_data->{'guarantorid'} || $guarantorid; my $guarantor = $guarantorid ? Koha::Patrons->find( $guarantorid ) : undef; $template->param( - patron => $patron, # Used by address include templates now + patron => $patron && $patron->borrowernumber() ? $patron : \%newdata, # Used by address include templates now nodouble => $nodouble, borrowernumber => $borrowernumber, #register number guarantor => $guarantor, -- 2.39.5