From 6a7f2536b5562128f00ce0513d00350137986ad5 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 21 Oct 2023 06:19:13 +0000 Subject: Add field separator option to CSV export dialog (#37621). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Karel Pičman. git-svn-id: https://svn.redmine.org/redmine/trunk@22359 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/export/csv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/redmine/export') 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 = -- cgit v1.2.3