Project

General

Profile

Feature #1189 » Updated-the-QueryColumn-code-to-be-allow_multi-aware-v2.diff

ciaran jessup, 2010-08-20 17:03

View differences:

app/models/query.rb
end
def value(issue)
cv = issue.custom_values.detect {|v| v.custom_field_id == @cf.id}
cv && @cf.cast_value(cv.value)
value= nil
if @cf.allow_multi
cva = issue.custom_values.find_all {|v| v.custom_field_id == @cf.id}
if cva.length >0
value= cva.join(", ")
end
else
cv= (issue.custom_values.detect {|v| v.custom_field_id == @cf.id})
value= cv.value unless cv.nil?
end
value && @cf.cast_value(value)
end
end
(3-3/8)