Project

General

Profile

Defect #20677 » issue.rb.patch

Pavel Rosický, 2015-09-04 23:49

View differences:

issue.rb (working copy)
660 660
      if attribute =~ /^\d+$/
661 661
        attribute = attribute.to_i
662 662
        v = custom_field_values.detect {|v| v.custom_field_id == attribute }
663
        if v && v.value.blank?
663
        if v && Array(v.value).detect(&:present?).nil?
664 664
          errors.add :base, v.custom_field.name + ' ' + l('activerecord.errors.messages.blank')
665 665
        end
666 666
      else
(2-2/2)