CSV export breaks custom columns (#10168).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9381 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e4ba838c6b
commit
d88ffd11e2
|
@ -332,7 +332,7 @@ module IssuesHelper
|
||||||
cv = issue.custom_field_values.detect {|v| v.custom_field_id == column.custom_field.id}
|
cv = issue.custom_field_values.detect {|v| v.custom_field_id == column.custom_field.id}
|
||||||
show_value(cv)
|
show_value(cv)
|
||||||
else
|
else
|
||||||
value = issue.send(column.name)
|
value = column.value(issue)
|
||||||
if value.is_a?(Date)
|
if value.is_a?(Date)
|
||||||
format_date(value)
|
format_date(value)
|
||||||
elsif value.is_a?(Time)
|
elsif value.is_a?(Time)
|
||||||
|
|
Loading…
Reference in New Issue