Commit f7251452 authored by Jim Brandt's avatar Jim Brandt
Browse files

Merge branch '4.2/download-0-length-files' into 4.2-trunk

parents 6da01d4d 2f90c9e6
......@@ -56,7 +56,7 @@ foreach my $message ( @{ $Attachments->{ $Parent || 0 } || [] } ) {
);
my $name = defined $message->Filename && length $message->Filename ? $message->Filename : '';
if ( $message->ContentLength ) {
if ( $message->ContentLength or $name ) {
</%PERL>
<div class="downloadattachment">
<a href="<% $AttachmentPath %>/<% $Transaction->Id %>/<% $message->Id %>/<% $name | u%>"><&|/l&>Download</&> <% length $name ? $name : loc('(untitled)') %></a>\
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment