diff options
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/misc/email-customers.html | 5 | ||||
-rwxr-xr-x | httemplate/search/svc_acct.cgi | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/httemplate/misc/email-customers.html b/httemplate/misc/email-customers.html index d981aeae9..b87a1bfbb 100644 --- a/httemplate/misc/email-customers.html +++ b/httemplate/misc/email-customers.html @@ -191,7 +191,10 @@ if ( $cgi->param('action') eq 'preview' ) { $sql_query->{'order_by'} = ''; my $object = qsearchs($sql_query); my $cust = $object->cust_main; - my %message = $msg_template->prepare( 'cust_main' => $cust ); + my %message = $msg_template->prepare( + 'cust_main' => $cust, + 'object' => $object + ); ($from, $subject, $html_body) = @message{'from', 'subject', 'html_body'}; } } diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi index be649a5f8..92e1c500c 100755 --- a/httemplate/search/svc_acct.cgi +++ b/httemplate/search/svc_acct.cgi @@ -11,6 +11,10 @@ 'color' => \@color, 'style' => \@style, 'footer' => \@footer, + 'html_init' => include('/elements/email-link.html', + 'search_hash' => \%search_hash, + 'table' => 'svc_acct' + ), &> <%once> |