(bug #5164) fix csv in overdue notice

This fix the csv export sent by email for empty lines.
This commit is contained in:
Nahuel ANGELINETTI 2010-08-24 12:09:54 +02:00 committed by Henri-Damien LAURENT
parent 3d4208ad2e
commit 9ee90f312b
1 changed files with 2 additions and 2 deletions

View File

@ -511,8 +511,8 @@ END_SQL
} else {
# Generate the content of the csv with headers
my $content = join(";", qw(title name surname address1 address2 zipcode city email itemcount itemsinfo due_date issue_date)) . "\n";
$content .= join( "\n", @output_chunks );
$content .= join( "\n", map { m/(.+)/ } @output_chunks );
my $attachment = {
filename => defined $csvfilename ? 'attachment.csv' : 'attachment.txt',
type => 'text/plain',