Project

General

Profile

Defect #16321 ยป field_format.rb.patch

uses parameter named html - Todd Hambley, 2014-03-14 02:53

View differences:

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)
    (1-1/1)