Aufträge - Abteilung per ALL_DEPARTMENTS und L.select_tag
[kivitendo-erp.git] / SL / Helper / CreatePDF.pm
index 1460ecf..fa1aafa 100644 (file)
@@ -59,6 +59,7 @@ sub create_parsed_file {
   );
 
   $form->{tmpfile} = $tmpfile;
+  (undef, undef, $form->{template_meta}{tmpfile}) = File::Spec->splitpath($tmpfile);
 
   my $parser  = SL::Template::create(
     type      => ($params{template_type} || 'LaTeX'),
@@ -66,6 +67,7 @@ sub create_parsed_file {
     form      => $form,
     myconfig  => \%::myconfig,
     userspath => $tmpdir,
+    variable_content_types => $params{variable_content_types},
   );
 
   my $result = $parser->parse($temp_fh);