diff options
author | mark <mark> | 2011-07-01 05:33:55 +0000 |
---|---|---|
committer | mark <mark> | 2011-07-01 05:33:55 +0000 |
commit | 4b80fe118da16b21603fcdbd090bc03d8fbf0578 (patch) | |
tree | fe5960c7c4ad7514dc46bd37e8e09cb86f266845 /FS/FS/cust_main_Mixin.pm | |
parent | 2c69cd41531a493c45ea72da3aa379fcc9f70aa9 (diff) |
send email from customer view, #13444
Diffstat (limited to 'FS/FS/cust_main_Mixin.pm')
-rw-r--r-- | FS/FS/cust_main_Mixin.pm | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm index 8c8553c..e8e243f 100644 --- a/FS/FS/cust_main_Mixin.pm +++ b/FS/FS/cust_main_Mixin.pm @@ -408,9 +408,6 @@ sub email_search_result { or die "msgnum $msgnum not found\n"; } - $param->{'payby'} = [ split(/\0/, $param->{'payby'}) ] - unless ref($param->{'payby'}); - my $sql_query = $class->search($param->{'search'}); my $count_query = delete($sql_query->{'count_query'}); @@ -463,15 +460,16 @@ sub email_search_result { @message = $msg_template->prepare( 'cust_main' => $cust_main ); } else { - my $to = $cust_main->invoicing_list_emailonly_scalar; - next if !$to; + my @to = $cust_main->invoicing_list_emailonly; + next if !@to; @message = ( 'from' => $from, - 'to' => $to, + 'to' => \@to, 'subject' => $subject, 'html_body' => $html_body, 'text_body' => $text_body, + 'custnum' => $cust_main->custnum, ); } #if $msg_template |