summaryrefslogtreecommitdiffstats
path: root/app/helpers/issues_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-08 18:26:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-08 18:26:39 +0000
commitd77c1d2829f985c418442940c623ec6ec5d5457b (patch)
tree306c57c239f36e81c78a2642a911ccf3bed280ef /app/helpers/issues_helper.rb
parente833cab30e19b5c9d17db405660f081923482f11 (diff)
downloadredmine-d77c1d2829f985c418442940c623ec6ec5d5457b.tar.gz
redmine-d77c1d2829f985c418442940c623ec6ec5d5457b.zip
Unified diff viewer for attached files with .patch or .diff extension (#1403).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1516 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r--app/helpers/issues_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index 6013f1ec8..915a80b2a 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -91,7 +91,7 @@ module IssuesHelper
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)
# Link to the attachment if it has not been removed
- value = link_to(value, :controller => 'attachments', :action => 'download', :id => detail.prop_key)
+ value = link_to(value, :controller => 'attachments', :action => 'show', :id => detail.prop_key)
else
value = content_tag("i", h(value)) if value
end