]> source.dussan.org Git - redmine.git/commitdiff
CSV export breaks custom columns (#10168).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 9 Apr 2012 21:32:54 +0000 (21:32 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 9 Apr 2012 21:32:54 +0000 (21:32 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9381 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/issues_helper.rb

index a9cf065e9584305601432fcd4f73259b48a78950..422c9a74cb2de9c02ea2160b99e81d429934c143 100644 (file)
@@ -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)