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
This commit is contained in:
Marius Balteanu
2025-07-06 07:36:21 +00:00
parent ea5ed8426e
commit 8f3f40db3b

View File

@@ -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