X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9b0245645097479fd4c9eed2957610b8af9895f2..e3b0f6130085592e16a5ec4aedf89cd3eaf9a363:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 5424a7c92..33e0fcbc2 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1102,7 +1102,7 @@ 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); + $self->{print_file_id} = $self->store_pdf($self)->id; } if ($self->{media} eq 'email') { if ( getcwd() eq $self->{"tmpdir"} ) { @@ -1212,10 +1212,11 @@ sub send_email { } } foreach my $attfile ( @attfiles ) { - push @{ $mail->{attachments} }, { path => $attfile->get_file, - id => $attfile->id, - type => $attfile->mime_type, - name => $attfile->file_name }; + push @{ $mail->{attachments} }, { path => $attfile->get_file, + id => $attfile->id, + type => $attfile->mime_type, + name => $attfile->file_name, + content => $attfile->get_content }; } } $mail->{message} =~ s/\r//g;