プロジェクト

全般

プロフィール

Vote #75032

完了

Custom Fields with "Link values to URL" set are displayed as escaped html in email

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email notifications_9
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
9
version_id:
82
issue_org_id:
16321
author_id:
67812
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
75
ステータス-->[Closed]

説明

It looks like the function formatted_value in source:/trunk/lib/redmine/field_format.rb accepts a parameter html, but never uses it. Custom fields with a url pattern present are always returned as links.

Example Custom Field "External Link":

Format: Integer
Name: External Link
Link values to URL: @https://support.example.com/tasks/%value%@

Display in notification email:

External Link: 26215

Environment:

  Redmine version                2.5.0.stable.12954
  Ruby version                   1.9.3-p448 (2013-06-27) [i686-linux]
  Rails version                  3.2.17
  Environment                    production
  Database adapter               Mysql2

journals

Attached patch uses html parameter to produce expected output.

field_format.rb (revision 12954)
--------------------------------------------------------------------------------
Fixed in r12967, thanks for pointing this out.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------

Admin Redmine さんが4年以上前に更新

  • カテゴリEmail notifications_9 にセット
  • 対象バージョン2.5.1_82 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0