Bug 7251 : Corrects a problem in overdue_notices.pl when delimiter is set to tabulation
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> checked that others values for the separator are OK = it is (space, semicolon,... see syspref "delimiter")
This commit is contained in:
parent
3be1252e1b
commit
478c2b139c
|
|
@ -330,6 +330,7 @@ our $csv; # the Text::CSV_XS object
|
|||
our $csv_fh; # the filehandle to the CSV file.
|
||||
if ( defined $csvfilename ) {
|
||||
my $sep_char = C4::Context->preference('delimiter') || ',';
|
||||
$sep_char = "\t" if ($sep_char eq 'tabulation');
|
||||
$csv = Text::CSV_XS->new( { binary => 1 , sep_char => $sep_char } );
|
||||
if ( $csvfilename eq '' ) {
|
||||
$csv_fh = *STDOUT;
|
||||
|
|
|
|||
Loading…
Reference in New Issue