(bug #3573) use delimiter syspref generating overdues csv
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Wed, 2 Sep 2009 15:09:21 +0000 (17:09 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:19:32 +0000 (23:19 +0200)
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
misc/cronjobs/overdue_notices.pl

index 1312db9..e205e1e 100755 (executable)
@@ -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 {