Bug 40659: (follow-up) Use UI language for custom virtual card layout
Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
16288c9187
commit
adfe58328d
|
|
@ -43,6 +43,8 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
|
||||
my $lang = C4::Languages::getlanguage($query);
|
||||
|
||||
my $patron = Koha::Patrons->find($borrowernumber);
|
||||
|
||||
# Find and display patron image if allowed
|
||||
|
|
@ -67,7 +69,7 @@ my $content = C4::Letters::GetPreparedLetter(
|
|||
borrowers => $patron->borrowernumber,
|
||||
branches => $patron->branchcode,
|
||||
},
|
||||
lang => $patron->lang,
|
||||
lang => $lang,
|
||||
message_transport_type => 'email',
|
||||
substitute => {
|
||||
my_barcode => $barcode_html,
|
||||
|
|
|
|||
Loading…
Reference in New Issue