projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d91a3c
)
Rückgabe von SL::File::store_pdf prüfen.
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 18 Jul 2017 09:02:03 +0000
(11:02 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 18 Jul 2017 09:02:03 +0000
(11:02 +0200)
Behebt #274
SL/Form.pm
patch
|
blob
|
history
diff --git
a/SL/Form.pm
b/SL/Form.pm
index
1610704
..
7f66f6f
100644
(file)
--- 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"} ) {