diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-06 09:20:40 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-06 09:20:40 +0000 |
commit | 331cf233457a1c7a8d1cd7027d2424fbdb2be7d4 (patch) | |
tree | c7e9ecb478367fe1add8b1b523db665a50b7f367 /app/helpers/issues_helper.rb | |
parent | f05f84a2eac034aeba032e645672dceeab4ef019 (diff) | |
download | redmine-331cf233457a1c7a8d1cd7027d2424fbdb2be7d4.tar.gz redmine-331cf233457a1c7a8d1cd7027d2424fbdb2be7d4.zip |
Do not display the magnifier for added files in email notifications (#4774).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9333 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r-- | app/helpers/issues_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 250775f62..a9cf065e9 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -252,7 +252,7 @@ module IssuesHelper if detail.property == 'attachment' && !value.blank? && atta = Attachment.find_by_id(detail.prop_key) # Link to the attachment if it has not been removed value = link_to_attachment(atta, :download => true, :only_path => options[:only_path]) - if atta.is_text? + if options[:only_path] != false && atta.is_text? value += link_to( image_tag('magnifier.png'), :controller => 'attachments', :action => 'show', |