Revision 2ebc72ae
Von Cem Aydin vor 2 Monaten hinzugefügt
SL/Controller/Reclamation.pm | ||
---|---|---|
2144 | 2144 |
|
2145 | 2145 |
my $template_ext; |
2146 | 2146 |
my $template_type; |
2147 |
my $variable_content_types; |
|
2147 | 2148 |
if ($print_form->{format} =~ /(opendocument|oasis)/i) { |
2148 | 2149 |
$template_ext = 'odt'; |
2149 | 2150 |
$template_type = 'OpenDocument'; |
... | ... | |
2151 | 2152 |
# add variables for printing with the built-in parser |
2152 | 2153 |
$reclamation->flatten_to_form($print_form, format_amounts => 1); |
2153 | 2154 |
$reclamation->add_legacy_template_arrays($print_form); |
2155 |
|
|
2156 |
$variable_content_types = { |
|
2157 |
longdescription => 'html', |
|
2158 |
notes => 'html', |
|
2159 |
$::form->get_variable_content_types_for_cvars, |
|
2160 |
} |
|
2154 | 2161 |
} |
2155 | 2162 |
|
2156 | 2163 |
# search for the template |
... | ... | |
2181 | 2188 |
template_type => $template_type, |
2182 | 2189 |
template => $template_file, |
2183 | 2190 |
variables => $print_form, |
2191 |
variable_content_types => $variable_content_types, |
|
2184 | 2192 |
); |
2185 | 2193 |
1; |
2186 | 2194 |
} || push @errors, ref($EVAL_ERROR) eq 'SL::X::FormError' ? $EVAL_ERROR->error : $EVAL_ERROR; |
Auch abrufbar als: Unified diff
Reclamation Controller: Beim Drucken mit odt-Vorlagen HTML Variablen parsen