delete :only_path option from link_to options at application_helper link_to_attachment (#10602)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9328 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8828c0f13e
commit
e964135b62
|
@ -99,6 +99,7 @@ module ApplicationHelper
|
|||
action = options.delete(:download) ? 'download' : 'show'
|
||||
opt_only_path = {}
|
||||
opt_only_path[:only_path] = (options[:only_path] == false ? false : true)
|
||||
options.delete(:only_path)
|
||||
link_to(h(text),
|
||||
{:controller => 'attachments', :action => action,
|
||||
:id => attachment, :filename => attachment.filename}.merge(opt_only_path),
|
||||
|
|
Loading…
Reference in New Issue