diff options
Diffstat (limited to 'app/views/request/_bubble.rhtml')
-rw-r--r-- | app/views/request/_bubble.rhtml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/request/_bubble.rhtml b/app/views/request/_bubble.rhtml index 256860aa3..9d9d2f7a9 100644 --- a/app/views/request/_bubble.rhtml +++ b/app/views/request/_bubble.rhtml @@ -6,14 +6,13 @@ <% if not attachments.nil? and attachments.size > 0 %> <p> <% attachments.each do |a| %> <% attachment_url = get_attachment_url(:id => incoming_message.info_request_id, - :incoming_message_id => incoming_message.id, :part => a.url_part_number, :file_name => - (a.filename || "download.bin")) %> + :incoming_message_id => incoming_message.id, :part => a.url_part_number, :file_name => a.display_filename) %> <% if ['application/pdf', 'application/msword', 'text/plain', 'image/tiff'].include?(a.content_type) %> <a href="<%=attachment_url%>"><img class="attachment_image" alt="Attachment" src="/images/icon_<%=a.content_type.sub('/', '_')%>_large.png"></a> <% else %> Attachment: <% end %> - <%= link_to (a.filename || "download.bin"), attachment_url %> + <%= link_to a.display_filename, attachment_url %> <!-- (<%= a.content_type %>) --> <br> <% end %> |