diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-26 18:08:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-26 18:08:24 +0000 |
commit | 1c49bd4258422bed77cb86ef97a868e8cbb6f12b (patch) | |
tree | 39b3b4da41250e778a82c283a548152957fa69dd | |
parent | 051875429eee26c964208c683ad1f131f6a8c054 (diff) | |
download | redmine-1c49bd4258422bed77cb86ef97a868e8cbb6f12b.tar.gz redmine-1c49bd4258422bed77cb86ef97a868e8cbb6f12b.zip |
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
-rw-r--r-- | app/helpers/issues_helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index e5a557f31..17889fadd 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 |