From f9ea5ad4c0ab886ee546012e8a6adec5a3dbf763 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Fri, 22 Jun 2018 14:55:34 -0400 Subject: [PATCH] RT# 73964 - V3 fixes for backport --- FS/FS/cust_main_Mixin.pm | 2 +- httemplate/misc/email-customers.html | 35 ++++++++++++++++++++++++++--------- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm index aa0395a4a..ccd1b84c9 100644 --- a/FS/FS/cust_main_Mixin.pm +++ b/FS/FS/cust_main_Mixin.pm @@ -487,7 +487,7 @@ sub email_search_result { if (!@classes) { @classes = ( 'invoice' ); } - my @to = $cust_main->contact_list_email(@classes); + my @to = $to ? split(',', $to) : $cust_main->contact_list_email(@classes); next if !@to; %message = ( diff --git a/httemplate/misc/email-customers.html b/httemplate/misc/email-customers.html index 1c756cdb9..1c22f8ffd 100644 --- a/httemplate/misc/email-customers.html +++ b/httemplate/misc/email-customers.html @@ -46,7 +46,6 @@ should be used to set msgnum or from/subject/html_body cgi params - % if ( $cgi->param('action') eq 'send' ) { @@ -72,6 +71,7 @@ should be used to set msgnum or from/subject/html_body cgi params + % if ( $msg_template ) { <% include('/elements/tr-fixed.html', 'label' => 'Template:', @@ -172,7 +172,7 @@ Template:
Email to voice
-