diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2025-07-06 07:36:21 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2025-07-06 07:36:21 +0000 |
commit | 8f3f40db3bd25299ff6cd93f7b9f87c5749db84a (patch) | |
tree | aee5b1ef20a83c9504366a8faadaba1fbd172e2e | |
parent | ea5ed8426e11fede86b710f1232828599aaec63e (diff) | |
download | redmine-8f3f40db3bd25299ff6cd93f7b9f87c5749db84a.tar.gz redmine-8f3f40db3bd25299ff6cd93f7b9f87c5749db84a.zip |
Merge r23862 from trunk to 6.0-stable (#42953).
git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@23869 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 194c4ff0e..f5971d138 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -128,7 +128,7 @@ module ApplicationHelper # * :download - Force download (default: false) def link_to_attachment(attachment, options={}) text = options.delete(:text) || attachment.filename - icon = options.fetch(:icon, false) + icon = options.delete(:icon) if options.delete(:download) route_method = :download_named_attachment_url |