summaryrefslogtreecommitdiffstats
path: root/lib/redmine/export
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-10-21 06:19:13 +0000
committerGo MAEDA <maeda@farend.jp>2023-10-21 06:19:13 +0000
commit6a7f2536b5562128f00ce0513d00350137986ad5 (patch)
tree2c6d91f22aecead424bf711e898644582209545e /lib/redmine/export
parenta69b43d5803f578a5dc8d6eda2dfd27f99d9863e (diff)
downloadredmine-6a7f2536b5562128f00ce0513d00350137986ad5.tar.gz
redmine-6a7f2536b5562128f00ce0513d00350137986ad5.zip
Add field separator option to CSV export dialog (#37621).
Patch by Karel Pičman. git-svn-id: https://svn.redmine.org/redmine/trunk@22359 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/export')
-rw-r--r--lib/redmine/export/csv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/export/csv.rb b/lib/redmine/export/csv.rb
index 785698657..c55546347 100644
--- a/lib/redmine/export/csv.rb
+++ b/lib/redmine/export/csv.rb
@@ -31,7 +31,7 @@ module Redmine
class << self
def generate(options = {}, &block)
- col_sep = l(:general_csv_separator)
+ col_sep = (options[:field_separator].presence || l(:general_csv_separator))
encoding = Encoding.find(options[:encoding]) rescue Encoding.find(l(:general_csv_encoding))
str =