##// END OF EJS Templates
fix attachment link has get parameter :class (#10602)...
Toshi MARUYAMA -
r9193:8828c0f13e5a
parent child
Show More
@@ -97,9 +97,11 module ApplicationHelper
97 97 def link_to_attachment(attachment, options={})
98 98 text = options.delete(:text) || attachment.filename
99 99 action = options.delete(:download) ? 'download' : 'show'
100 opt_only_path = {}
101 opt_only_path[:only_path] = (options[:only_path] == false ? false : true)
100 102 link_to(h(text),
101 103 {:controller => 'attachments', :action => action,
102 :id => attachment, :filename => attachment.filename }.merge(options),
104 :id => attachment, :filename => attachment.filename}.merge(opt_only_path),
103 105 options)
104 106 end
105 107
General Comments 0
You need to be logged in to leave comments. Login now