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