From 9ee90f312bdf3ec232f75326c5f28e1d3796e915 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Tue, 24 Aug 2010 12:09:54 +0200 Subject: [PATCH] (bug #5164) fix csv in overdue notice This fix the csv export sent by email for empty lines. --- misc/cronjobs/overdue_notices.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index 752d2b10a2..837a2e281d 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -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', -- 2.39.5