X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fgraph%2Felements%2Freport.html;h=da2235fa91d9c62c7f22470069627cd45ab2c9df;hb=cfceb11a01354e3e6e78fd3e466656a3fdbac19e;hp=2be511aecaf1da3aa70097c46884e94e5ff1e737;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984;p=freeside.git
diff --git a/httemplate/graph/elements/report.html b/httemplate/graph/elements/report.html
index 2be511aec..da2235fa9 100644
--- a/httemplate/graph/elements/report.html
+++ b/httemplate/graph/elements/report.html
@@ -155,28 +155,28 @@ any delimiter and linked from the elements in @data.
% );
%
% http_header('Content-Type' => 'image/png' );
+% http_header('Cache-Control' => 'no-cache' );
%
% $chart->_set_colors();
%
<% $chart->scalar_png([ $opt{'axis_labels'}, @data ]) %>
%
% } else {
+% # image and download links should use the cached data
+% # just directly reference this component
+% my $myself = $p.'graph/elements/report.html?session='.$session;
%
<% include('/elements/header.html', $opt{'title'} ) %>
% unless ( $opt{'graph_type'} eq 'none' ) {
-% $cgi->param('_type', 'png');
-
+
" WIDTH="976" HEIGHT="384">
% }
% unless ( $opt{'disable_download'} ) {
-% $cgi->param('_type', "xls" );
Download full results
- as Excel spreadsheet
-% $cgi->param('_type', 'csv');
- as CSV file