From b2e3b093324f55790556e947a2cc4a2f8024920a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 1 Feb 2021 17:41:10 +0100 Subject: [PATCH] S:C:Letter: Sprache an Druck-Template weitergeben --- SL/Controller/Letter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/Letter.pm b/SL/Controller/Letter.pm index 3ee9eb78d..937664f82 100644 --- a/SL/Controller/Letter.pm +++ b/SL/Controller/Letter.pm @@ -208,7 +208,7 @@ sub action_print_letter { letter => $letter, template_meta => { formname => 'letter', - language => SL::DB::Language->new, + language => SL::DB::Manager::Language->find_by_or_create(id => $::form->{language_id}*1), extension => 'pdf', format => $::form->{format}, media => $::form->{media}, -- 2.20.1