From: Moritz Bunkus Date: Thu, 16 Jan 2014 12:22:54 +0000 (+0100) Subject: print_form: Templatesystem mitteilen, dass gewisse Variablen bei Ver-/Einkauf HTML... X-Git-Tag: release-3.2.0beta~467^2~38 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3b32e1ddebd2304859df8f2322f8fc27ad94136f;p=kivitendo-erp.git print_form: Templatesystem mitteilen, dass gewisse Variablen bei Ver-/Einkauf HTML enthalten --- diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index d47168bc4..1cfc0ca57 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1328,6 +1328,14 @@ sub print_form { $form->{label} = $form->{formname} eq 'pick_list' ? $locale->text('Pick List') : $locale->text('Delivery Order'); } + $form->{TEMPLATE_DRIVER_OPTIONS} = { }; + if (any { $form->{type} eq $_ } qw(sales_quotation sales_order sales_delivery_order invoice request_quotation purchase_order purchase_delivery_order)) { + $form->{TEMPLATE_DRIVER_OPTIONS}->{variable_content_types} = { + longdescription => 'html', + partnotes => 'html', + }; + } + $form->isblank("email", $locale->text('E-mail address missing!')) if ($form->{media} eq 'email'); $form->isblank("${inv}date",