From 1c49bd4258422bed77cb86ef97a868e8cbb6f12b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 26 Mar 2008 18:08:24 +0000 Subject: [PATCH] Add the description field to the issue csv export (#753). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1292 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/issues_helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index e5a557f3..17889fad 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -131,6 +131,8 @@ module IssuesHelper # otherwise export custom fields marked as "For all projects" custom_fields = project.nil? ? IssueCustomField.for_all : project.all_custom_fields custom_fields.each {|f| headers << f.name} + # Description in the last column + headers << l(:field_description) csv << headers.collect {|c| begin; ic.iconv(c.to_s); rescue; c.to_s; end } # csv lines issues.each do |issue| @@ -152,6 +154,7 @@ module IssuesHelper format_time(issue.updated_on) ] custom_fields.each {|f| fields << show_value(issue.custom_value_for(f)) } + fields << issue.description csv << fields.collect {|c| begin; ic.iconv(c.to_s); rescue; c.to_s; end } end end