Bug 21649: [18.05.X] Pass guarantee info to template when adding child

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” <lucas@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2018-11-19 14:47:04 +00:00 committed by “Lucas Gass”
parent d6fe416578
commit 8ce960d709
1 changed files with 1 additions and 1 deletions

View File

@ -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,