Commit 8368598c authored by jplang's avatar jplang

Add missing links to images in issue history (#22058).

git-svn-id: https://svn.redmine.org/redmine/trunk@15551 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 1b3595f0
......@@ -451,7 +451,8 @@ module IssuesHelper
atta = detail.journal.journalized.attachments.detect {|a| a.id == detail.prop_key.to_i}
# Link to the attachment if it has not been removed
value = link_to_attachment(atta, :download => true, :only_path => options[:only_path])
if options[:only_path] != false && atta.is_text?
if options[:only_path] != false && (atta.is_text? || atta.is_image?)
value += ' '
value += link_to(l(:button_view),
{ :controller => 'attachments', :action => 'show',
:id => atta, :filename => atta.filename },
......
Markdown is supported
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