From: Sven Schöling Date: Tue, 18 Jul 2017 09:02:03 +0000 (+0200) Subject: Rückgabe von SL::File::store_pdf prüfen. X-Git-Tag: release-3.5.4~1001 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b0fc2ec282a7ee6663b41aadd302f2259f9fa036;p=kivitendo-erp.git Rückgabe von SL::File::store_pdf prüfen. Behebt #274 --- 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"} ) {