From b0fc2ec282a7ee6663b41aadd302f2259f9fa036 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 18 Jul 2017 11:02:03 +0200 Subject: [PATCH] =?utf8?q?R=C3=BCckgabe=20von=20SL::File::store=5Fpdf=20pr?= =?utf8?q?=C3=BCfen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Behebt #274 --- SL/Form.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/Form.pm b/SL/Form.pm index 1610704c8..7f66f6fbf 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1087,7 +1087,8 @@ sub parse_template { if ( !$self->{preview} && $ext_for_format eq 'pdf' && $::instance_conf->get_doc_storage) { $self->{attachment_filename} ||= $self->generate_attachment_filename; - $self->{print_file_id} = $self->store_pdf($self)->id; + my $file_obj = $self->store_pdf($self); + $self->{print_file_id} = $file_obj->id if $file_obj; } if ($self->{media} eq 'email') { if ( getcwd() eq $self->{"tmpdir"} ) { -- 2.20.1