summaryrefslogtreecommitdiff
path: root/httemplate/misc/email-invoice.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/misc/email-invoice.cgi')
-rwxr-xr-xhttemplate/misc/email-invoice.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/misc/email-invoice.cgi b/httemplate/misc/email-invoice.cgi
index 269722f67..b24e0420f 100755
--- a/httemplate/misc/email-invoice.cgi
+++ b/httemplate/misc/email-invoice.cgi
@@ -12,7 +12,7 @@ my $invnum = $3;
my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});
die "Can't find invoice!\n" unless $cust_bill;
-$cust_bill->email($template);
+$cust_bill->email({ 'template' => $template });
my $custnum = $cust_bill->getfield('custnum');