Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2cc6ad12

Von Cem Aydin vor 8 Monaten hinzugefügt

  • ID 2cc6ad12b7ba143bac3744f88116e6fa26adbeb8
  • Vorgänger b2322626
  • Nachfolger 1f44692e

Reclamation Controller: Beim Drucken mit odt-Vorlagen HTML Variablen parsen

Unterschiede anzeigen:

SL/Controller/Reclamation.pm
my $template_ext;
my $template_type;
my $variable_content_types;
if ($print_form->{format} =~ /(opendocument|oasis)/i) {
$template_ext = 'odt';
$template_type = 'OpenDocument';
......
# add variables for printing with the built-in parser
$reclamation->flatten_to_form($print_form, format_amounts => 1);
$reclamation->add_legacy_template_arrays($print_form);
$variable_content_types = {
longdescription => 'html',
notes => 'html',
$::form->get_variable_content_types_for_cvars,
}
}
# search for the template
......
template_type => $template_type,
template => $template_file,
variables => $print_form,
variable_content_types => $variable_content_types,
);
1;
} || push @errors, ref($EVAL_ERROR) eq 'SL::X::FormError' ? $EVAL_ERROR->error : $EVAL_ERROR;

Auch abrufbar als: Unified diff