S:C:Letter: Sprache an Druck-Template weitergeben
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 1 Feb 2021 16:41:10 +0000 (17:41 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 1 Feb 2021 16:41:10 +0000 (17:41 +0100)
SL/Controller/Letter.pm

index 3ee9eb7..937664f 100644 (file)
@@ -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},