[freeside-commits] freeside/httemplate/view bill_batch.cgi, 1.3, 1.4
Mark Wells
mark at wavetail.420.am
Tue Jul 12 18:22:21 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv15825/httemplate/view
Modified Files:
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.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- bill_batch.cgi 27 May 2011 01:11:02 -0000 1.3
+++ bill_batch.cgi 13 Jul 2011 01:22:19 -0000 1.4
@@ -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