Defect #16321 ยป field_format.rb.patch
| field_format.rb (working copy) | ||
|---|---|---|
|
def formatted_value(view, custom_field, value, customized=nil, html=false)
|
||
|
casted = cast_value(custom_field, value, customized)
|
||
|
if custom_field.url_pattern.present?
|
||
|
if custom_field.url_pattern.present? && html
|
||
|
texts_and_urls = Array.wrap(casted).map do |single_value|
|
||
|
text = view.format_object(single_value, false).to_s
|
||
|
url = url_from_pattern(custom_field, single_value, customized)
|
||