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 #1

Updated by Go MAEDA 3 days ago

  • Subject changed from Download icon not displayed for file format custom fields to File format custom fields use legacy download icon instead of SVG icon
  • Status changed from New to Confirmed
  • Target version set to 6.1.1

Setting the target version to 6.1.1.

Actions #2

Updated by Go MAEDA 3 days ago

  • Related to Patch #43206: Remove deprecated icon-* classes from stylesheets added
Actions #3

Updated by Go MAEDA 3 days ago

  • Status changed from Confirmed to Resolved
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the fix in r24089. Thank you.

Actions #4

Updated by Go MAEDA 3 days ago

  • Status changed from Resolved to Closed

Merged the fix into 6.1-stable branch in r24092.

Actions

Also available in: Atom PDF