From: Jean-Philippe Lang Date: Mon, 9 Apr 2012 21:32:54 +0000 (+0000) Subject: CSV export breaks custom columns (#10168). X-Git-Tag: 2.0.0~205 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d88ffd11e20b9ba642e6bb08b73b1e459468283b;p=redmine.git CSV export breaks custom columns (#10168). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9381 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index a9cf065e9..422c9a74c 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -332,7 +332,7 @@ module IssuesHelper cv = issue.custom_field_values.detect {|v| v.custom_field_id == column.custom_field.id} show_value(cv) else - value = issue.send(column.name) + value = column.value(issue) if value.is_a?(Date) format_date(value) elsif value.is_a?(Time)