Defect #16321

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

Added by Todd Hambley almost 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Email notifications
Target version:2.5.1
Resolution:Fixed Affected version:2.5.0

Description

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: <a href="https://support.example.com/tasks/26215">26215</a>

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

field_format.rb.patch Magnifier - uses parameter named html (644 Bytes) Todd Hambley, 2014-03-14 02:53

Associated revisions

Revision 12967
Added by Jean-Philippe Lang almost 4 years ago

Fixed that integer custom fields with "Link values to URL" set are displayed as escaped html in text email (#16321).

History

#1 Updated by Todd Hambley almost 4 years ago

Attached patch uses html parameter to produce expected output.

field_format.rb (revision 12954)

#2 Updated by Jean-Philippe Lang almost 4 years ago

  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Target version set to 2.5.1
  • Resolution set to Fixed

Fixed in r12967, thanks for pointing this out.

#3 Updated by Jean-Philippe Lang almost 4 years ago

  • Status changed from Resolved to Closed

Merged.

Also available in: Atom PDF