X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/58c266eacda69e1a0dc2e4a201974bb9afd493f5..c1524c56c69d761f85a543ad66eac298e704b10c:/SL/Controller/EmailJournal.pm diff --git a/SL/Controller/EmailJournal.pm b/SL/Controller/EmailJournal.pm index a4ffc62b5..c818cc393 100644 --- a/SL/Controller/EmailJournal.pm +++ b/SL/Controller/EmailJournal.pm @@ -69,7 +69,7 @@ sub action_download_attachment { my $ref = \$attachment->content; if ( $attachment->file_id > 0 ) { my $file = SL::File->get(id => $attachment->file_id ); - $ref = SL::File->get_content(dbfile => $file) if $file; + $ref = $file->get_content if $file; } $self->send_file($ref, name => $attachment->name, type => $attachment->mime_type); }