From: Bernd Bleßmann Date: Mon, 1 Feb 2021 16:41:10 +0000 (+0100) Subject: S:C:Letter: Sprache an Druck-Template weitergeben X-Git-Tag: kivitendo-mebil_0.1-0~9^2~492 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b2e3b093324f55790556e947a2cc4a2f8024920a;p=kivitendo-erp.git S:C:Letter: Sprache an Druck-Template weitergeben --- 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},