[freeside-commits] freeside/httemplate/view bill_batch.cgi, 1.2.4.1, 1.2.4.2
Mark Wells
mark at wavetail.420.am
Wed Jul 13 01:11:02 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv5851/httemplate/view
Modified Files:
Tag: FREESIDE_2_1_BRANCH
bill_batch.cgi
Log Message:
fix invoice batch download, #13461
Index: bill_batch.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/bill_batch.cgi,v
retrieving revision 1.2.4.1
retrieving revision 1.2.4.2
diff -u -w -d -r1.2.4.1 -r1.2.4.2
--- bill_batch.cgi 27 May 2011 01:11:19 -0000 1.2.4.1
+++ bill_batch.cgi 13 Jul 2011 08:10:59 -0000 1.2.4.2
@@ -1,11 +1,13 @@
% if($magic eq 'download') {
-% $m->clear_buffer;
-% $r->content_type('application/pdf');
-% $r->headers_out->add('Content-Disposition' => 'attachment;filename="invoice_batch_'.$batchnum.'.pdf"');
-<% $batch->pdf %>
+% my $content = $batch->pdf;
% $batch->pdf('');
% my $error = $batch->replace;
% warn "error deleting cached PDF: '$error'\n" if $error;
+%
+% $m->clear_buffer;
+% $r->content_type('application/pdf');
+% $r->headers_out->add('Content-Disposition' => 'attachment;filename="invoice_batch_'.$batchnum.'.pdf"');
+<% $content %>
% }
%
% elsif ($magic eq 'download_popup') {
More information about the freeside-commits
mailing list