Patch #21550 » parse_redmine_links_force_download_option.diff
| app/helpers/application_helper.rb | ||
|---|---|---|
|
when 'attachment'
|
||
|
attachments = options[:attachments] || []
|
||
|
attachments += obj.attachments if obj.respond_to?(:attachments)
|
||
|
is_download_link = (options[:is_download_link] != false)
|
||
|
if attachments && attachment = Attachment.latest_attach(attachments, name)
|
||
|
link = link_to_attachment(attachment, :only_path => only_path, :download => true, :class => 'attachment')
|
||
|
link = link_to_attachment(attachment, :only_path => only_path, :download => is_download_link, :class => 'attachment')
|
||
|
end
|
||
|
when 'project'
|
||
|
if p = Project.visible.where("identifier = :s OR LOWER(name) = :s", :s => name.downcase).first
|
||