From 142628e0282159c5c7f06b8cd6ec1c7707a69e55 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 8 Jan 2014 10:05:42 +0100 Subject: [PATCH] =?utf8?q?Form->prepare=5Ffor=5Fprinting:=20template=5Fmet?= =?utf8?q?a=20zur=20Verf=C3=BCgung=20stellen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Behebt #2247. --- SL/Form.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SL/Form.pm b/SL/Form.pm index e115f9706..2e4f5a9be 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -3465,6 +3465,16 @@ sub prepare_for_printing { $self->reformat_numbers($output_numberformat, $precision, @{ $field_list }); } + $self->{template_meta} = { + formname => $self->{formname}, + language => SL::DB::Manager::Language->find_by_or_create(id => $self->{language_id} || undef), + format => $self->{format}, + media => $self->{media}, + extension => $extension, + printer => SL::DB::Manager::Printer->find_by_or_create(id => $self->{printer_id} || undef), + today => DateTime->today, + }; + return $self; } -- 2.20.1