X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/19ee5c1b75fba3b5a11b7b5c2c6d33bbecd8ada5..568004bad2ee44969edd1f484d8020f4433dc233:/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); }