diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-22 17:55:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-22 17:55:19 +0000 |
commit | 9b579de9e234e378fb5081d79bea02d175495db7 (patch) | |
tree | 28d55b59b2ade9201dd0ea518c56e740b039e649 /app/helpers/issues_helper.rb | |
parent | 8a7bfc72b20a0a554812db7f8bb7bfdf3e2a21d4 (diff) | |
download | redmine-9b579de9e234e378fb5081d79bea02d175495db7.tar.gz redmine-9b579de9e234e378fb5081d79bea02d175495db7.zip |
Appends the filename to the attachment url so that clients that ignore content-disposition http header get the real filename (#1649).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1686 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r-- | app/helpers/issues_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 403697178..9e419ab43 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -95,9 +95,9 @@ module IssuesHelper label = content_tag('strong', label) old_value = content_tag("i", h(old_value)) if detail.old_value old_value = content_tag("strike", old_value) if detail.old_value and (!detail.value or detail.value.empty?) - if detail.property == 'attachment' && !value.blank? && Attachment.find_by_id(detail.prop_key) + if detail.property == 'attachment' && !value.blank? && a = Attachment.find_by_id(detail.prop_key) # Link to the attachment if it has not been removed - value = link_to(value, :controller => 'attachments', :action => 'show', :id => detail.prop_key) + value = link_to_attachment(a) else value = content_tag("i", h(value)) if value end |