X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/e3b1cf36d8a484f0f10250e498e8779552ad26b8..66c9114861885f75a29030682be83976cd93838b:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index b112ea788..9a7c9e175 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -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"};