X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Femail-customers.html;fp=httemplate%2Fmisc%2Femail-customers.html;h=b631165dc68e1306b84a106411727564e433ce9c;hp=3f8816caa5b33ee1fed6b9819976f68d8541109b;hb=80cea05076d397b3b06246a3df4451aea415e9fc;hpb=409cd8958c687ac468b4d4fbe84fefb8f1e2feec 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,