Auftrags-Controller: HTML-formatierte Bemerkungen richtig in PDF umwandeln.
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Thu, 17 Sep 2015 13:16:32 +0000 (15:16 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Mon, 16 Nov 2015 15:15:57 +0000 (16:15 +0100)
SL/Controller/Order.pm

index 8b47332..48ebf30 100644 (file)
@@ -124,6 +124,11 @@ sub action_create_pdf {
       $pdf = SL::Helper::CreatePDF->create_pdf(
         template  => SL::Helper::CreatePDF->find_template(name => $print_form->{formname}),
         variables => $print_form,
+        variable_content_types => {
+          longdescription => 'html',
+          partnotes       => 'html',
+          notes           => 'html',
+        },
       );
       1;
     } || push @errors, ref($EVAL_ERROR) eq 'SL::X::FormError' ? $EVAL_ERROR->getMessage : $EVAL_ERROR;