]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Beim Versenden von Emails mit PDFs aus OpenDocument den MIME-Typen und Dateinamen...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 11 Jun 2009 13:00:24 +0000 (13:00 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 11 Jun 2009 13:00:24 +0000 (13:00 +0000)
SL/Form.pm

index b112ea7885acab1a01ab7d037a02f1d7834aeac3..9a7c9e1759673c8474dd9ff27aef30d5c6e9aa70 100644 (file)
@@ -1194,7 +1194,7 @@ sub parse_template {
 
   if ($self->{"format"} =~ /(opendocument|oasis)/i) {
     $template       = OpenDocumentTemplate->new($self->{"IN"}, $self, $myconfig, $userspath);
-    $ext_for_format = 'odt';
+    $ext_for_format = $self->{"format"} =~ m/pdf/ ? 'pdf' : 'odt';
 
   } elsif ($self->{"format"} =~ /(postscript|pdf)/i) {
     $ENV{"TEXINPUTS"} = ".:" . getcwd() . "/" . $myconfig->{"templates"} . ":" . $ENV{"TEXINPUTS"};