Patch #16319 » fix-crash.diff
| lib/redmine/field_format.rb Fri Jan 24 10:29:06 2014 +0000 → lib/redmine/field_format.rb Thu Jan 30 21:10:09 2014 +0330 | ||
|---|---|---|
|
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.respond_to?(:url_pattern) && custom_field.url_pattern.present?
|
||
|
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)
|
||
- « Previous
- 1
- 2
- Next »