From 80cea05076d397b3b06246a3df4451aea415e9fc Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Thu, 3 Jan 2019 12:38:32 -0500 Subject: RT 81913 - fixed error with batch email from advanced customer reports and contacts report --- httemplate/misc/email-customers.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'httemplate/misc') diff --git a/httemplate/misc/email-customers.html b/httemplate/misc/email-customers.html index 3f8816caa..b631165dc 100644 --- a/httemplate/misc/email-customers.html +++ b/httemplate/misc/email-customers.html @@ -184,7 +184,7 @@ Template: }, &> -% if ($send_to_domain) { +% if ($send_to_domain && $cgi->param('custnum')) {
Email to voice
@@ -326,6 +326,15 @@ else { @search{keys %search} = map { /\0/ ? [ split /\0/, $_ ] : $_ } values %search; } +# rebuild contacts hash +delete $search{contacts} + if exists $search{contacts} && ref $search{contacts}; +$search{'contacts'} = { + map { $_ => $search{$_}, } + grep { /^(contacts_*)/ && $search{$_} } + keys %search +}; + &{$opt{'post_search_hook'}}( 'conf' => $conf, 'search' => \%search, -- cgit v1.2.1