Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
best-practical
rt
Commits
f7251452
Commit
f7251452
authored
Jun 12, 2014
by
Jim Brandt
Browse files
Merge branch '4.2/download-0-length-files' into 4.2-trunk
parents
6da01d4d
2f90c9e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/html/Elements/ShowTransactionAttachments
View file @
f7251452
...
...
@@ -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>\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment