Project

General

Profile

Actions

Defect #43422

closed

File format custom fields use legacy download icon instead of SVG icon

Added by Mizuki ISHIKAWA 3 days ago. Updated 3 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Previously, when a ticket included a file-type custom field, a download icon appeared next to the file name. However, the icon is now replaced by the file name itself.

Before changes After changes

This issue can be fixed by adding the following code to display it as an SVG icon.

diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index c3296038c..5fc725a82 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -313,6 +313,7 @@ module ApplicationHelper
           link_to_attachment(
             object,
             :class => ['icon-only', 'icon-download'],
+            :icon => 'download',
             :title => l(:button_download),
             :download => true
           )


Files


Related issues

Related to Redmine - Patch #43206: Remove deprecated icon-* classes from stylesheetsClosedMarius BĂLTEANU

Actions
Actions

Also available in: Atom PDF