(bug #3573) use delimiter syspref generating overdues csv
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
parent
b450285003
commit
78a2b2cb1e
|
|
@ -284,7 +284,8 @@ binmode( STDOUT, ":utf8" );
|
|||
our $csv; # the Text::CSV_XS object
|
||||
our $csv_fh; # the filehandle to the CSV file.
|
||||
if ( defined $csvfilename ) {
|
||||
$csv = Text::CSV_XS->new( { binary => 1 } );
|
||||
my $sep_char = C4::Context->preference('delimiter') || ',';
|
||||
$csv = Text::CSV_XS->new( { binary => 1 , sep_char => $sep_char } );
|
||||
if ( $csvfilename eq '' ) {
|
||||
$csv_fh = *STDOUT;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue