From 2103a18a3be93d38f2c1e69bea14a2681e382007 Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 3 Feb 2012 01:08:11 +0000 Subject: email to search results, #16246 --- httemplate/misc/email-customers.html | 5 ++++- httemplate/search/svc_acct.cgi | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'httemplate') 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> -- cgit v1.2.1