[Koha-patches] [PATCH] (bug #5164) fix csv in overdue notice

Nahuel ANGELINETTI nahuel.angelinetti at biblibre.com
Tue Aug 24 12:04:27 CEST 2010


This fix the csv export sent by email for empty lines, and header that appears 2 times.
---
 misc/cronjobs/overdue_notices.pl |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl
index 752d2b1..45625f2 100755
--- a/misc/cronjobs/overdue_notices.pl
+++ b/misc/cronjobs/overdue_notices.pl
@@ -510,8 +510,7 @@ 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 );
+            my $content .= join( "\n", map { m/(.+)/ } @output_chunks );
             
             my $attachment = {
                 filename => defined $csvfilename ? 'attachment.csv' : 'attachment.txt',
-- 
1.7.0.4



More information about the Koha-patches mailing list