diff --git a/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco b/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco index aaa00e171..ba3dc053d 100644 --- a/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco +++ b/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco @@ -62,13 +62,14 @@
<%- @humanFileSize(attachment.size) %>
<% else: %> - download<% end %>> + <% content_type = attachment.preferences['Content-Type'] || attachment.preferences['content_type'] %> + download<% end %>>
- <% if attachment.preferences && attachment.preferences['Content-Type'] && @ContentTypeIcon(attachment.preferences['Content-Type']): %> - <% if @canPreview(attachment.preferences['Content-Type']): %> + <% if attachment.preferences && content_type && @ContentTypeIcon(content_type): %> + <% if @canPreview(content_type): %> <% else: %> - <%- @Icon( @ContentTypeIcon(attachment.preferences['Content-Type']) ) %> + <%- @Icon( @ContentTypeIcon(content_type) ) %> <% end %> <% else: %> <%- @Icon('file-unknown') %>