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:
David Cook 2026-04-21 04:34:36 +00:00 committed by Lucas Gass
parent 16288c9187
commit adfe58328d
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 3 additions and 1 deletions

View File

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