Bug 27045: (follow-up) Fix delimiter in header rows
authorKatrin Fischer <katrin.fischer.83@web.de>
Sat, 16 Jul 2022 11:23:54 +0000 (11:23 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 20 Jul 2022 14:50:41 +0000 (11:50 -0300)
The header rows still showed \t because the newly defined
variable wasn't used there.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Acquisition.pm
serials/lateissues-export.pl

index 830436b..bf8a215 100644 (file)
@@ -311,7 +311,7 @@ sub GetBasketAsCSV {
             }
             push @rows, \@row;
         }
-        my $content = join( $csv_profile->csv_separator, @headers ) . "\n";
+        my $content = join( $delimiter, @headers ) . "\n";
         for my $row ( @rows ) {
             $csv->combine(@$row);
             my $string = $csv->string;
index de09d4c..af83f2c 100755 (executable)
@@ -83,7 +83,7 @@ print $query->header(
     -attachment => "serials-claims.csv",
 );
 
-print join( $csv_profile->csv_separator, @headers ) . "\n";
+print join( $delimiter, @headers ) . "\n";
 
 for my $row ( @rows ) {
     $csv->combine(@$row);