Bugzilla – Attachment 3639 Details for
Bug 5098
overdue script and csv
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for master
0001-Bug-5098-Add-csv-headers-in-overdues.patch (text/plain), 1.16 KB, created by
Julian Maurice
on 2011-04-04 15:00:33 UTC
(
hide
)
Description:
Patch for master
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2011-04-04 15:00:33 UTC
Size:
1.16 KB
patch
obsolete
>From e7ed59e63b776662000d7b652c1798bad619284e Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 4 Apr 2011 16:52:03 +0200 >Subject: [PATCH] Bug 5098: Add csv headers in overdues > >--- > misc/cronjobs/overdue_notices.pl | 6 +++++- > 1 files changed, 5 insertions(+), 1 deletions(-) > >diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl >index ba7cba8..f34f351 100755 >--- a/misc/cronjobs/overdue_notices.pl >+++ b/misc/cronjobs/overdue_notices.pl >@@ -583,10 +583,14 @@ END_SQL > local $, = "\f"; # pagebreak > print @output_chunks; > } >+ # 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 $attachment = { > filename => defined $csvfilename ? 'attachment.csv' : 'attachment.txt', > type => 'text/plain', >- content => join( "\n", @output_chunks ) >+ content => $content, > }; > > my $letter = { >-- >1.7.4.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5098
:
3639
|
4087
|
4820