[freeside-commits] branch master updated. dacfac92a13152bb3060ac000121b41ffc8d877f

Jonathan Prykop jonathan at 420.am
Mon Dec 14 22:36:34 PST 2015


The branch, master has been updated
       via  dacfac92a13152bb3060ac000121b41ffc8d877f (commit)
      from  bc6770012b72baee61e86c54e959ac8ee234ff86 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit dacfac92a13152bb3060ac000121b41ffc8d877f
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Tue Dec 15 00:34:24 2015 -0600

    RT#34078: Payment History Report / Statement [updated cgi params]

diff --git a/httemplate/misc/email-customer-statement.html b/httemplate/misc/email-customer-statement.html
index 20430f5..39c99e5 100644
--- a/httemplate/misc/email-customer-statement.html
+++ b/httemplate/misc/email-customer-statement.html
@@ -34,14 +34,14 @@ my $alternate_form = sub {
       qw( start_date end_date )
     ),
     '</TABLE>',
-    '<INPUT TYPE="hidden" NAME="action" VALUE="preview">',
+    '<INPUT TYPE="hidden" NAME="preview" VALUE="1">',
     '<INPUT TYPE="submit" VALUE="Preview notice">',
   );
 };
 
 my $post_search_hook = sub {
   my %opt = @_;
-  return unless $cgi->param('action') eq 'preview';
+  return unless $cgi->param('preview');
   my $cust_main = qsearchs('cust_main',$opt{'search'})
     or die "Could not find customer";
 
@@ -69,7 +69,7 @@ my $post_search_hook = sub {
     $summary_text
   );
 
-  $cgi->param('html_body',
+  $cgi->param('body',
     '<P>' .
     $opt{'conf'}->config('company_name') . 
     ' statement of charges and payments for ' .

-----------------------------------------------------------------------

Summary of changes:
 httemplate/misc/email-customer-statement.html |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list