summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-05-03 12:52:21 -0700
committerMark Wells <mark@freeside.biz>2016-05-03 13:16:55 -0700
commiteb1796299a429ba5cd3b939a65bf5e95abf0086c (patch)
tree403dd2dafb7137da92128ad8a6a0001e4c7faa9f /httemplate/misc
parent755159a8654a2eda89badd1498f8def3a472cb15 (diff)
email to specific contact classes, 3.x adjustments
Diffstat (limited to 'httemplate/misc')
-rw-r--r--httemplate/misc/email-customers.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/httemplate/misc/email-customers.html b/httemplate/misc/email-customers.html
index 11ab050b6..c9a216c3a 100644
--- a/httemplate/misc/email-customers.html
+++ b/httemplate/misc/email-customers.html
@@ -46,10 +46,10 @@ should be used to set msgnum or from/subject/html_body cgi params
<INPUT TYPE="hidden" NAME="search" VALUE="<% encode_base64(nfreeze(\%search)) %>">
<INPUT TYPE="hidden" NAME="popup" VALUE="<% $popup %>">
<INPUT TYPE="hidden" NAME="url" VALUE="<% $url | h %>">
-<INPUT TYPE="hidden" NAME="to_contact_classnum" VALUE="<% join(',', @contact_classnum) %>">
% if ( $cgi->param('action') eq 'send' ) {
+ <INPUT TYPE="hidden" NAME="to_contact_classnum" VALUE="<% $cgi->param('to_contact_classnum') %>">
<FONT SIZE="+2">Sending notice</FONT>
<& /elements/progress-init.html,
@@ -62,6 +62,7 @@ should be used to set msgnum or from/subject/html_body cgi params
% } elsif ( $cgi->param('action') eq 'preview' ) {
+ <INPUT TYPE="hidden" NAME="to_contact_classnum" VALUE="<% join(',', @contact_classnum) %>">
<FONT SIZE="+2">Preview notice</FONT>
% }
@@ -149,7 +150,6 @@ Template:
onchange => 'toggle(this)',
&>
<BR>
-% }
% # select destination contact classes
Send to contacts:
<& /elements/checkboxes.html,
@@ -306,8 +306,8 @@ if ( $cgi->param('action') eq 'preview' ) {
($from, $subject, $html_body) = @message{'from', 'subject', 'html_body'};
}
- # contact_class_X params
- foreach my $param ( $cgi->multi_param ) {
+ # contact_class_X params in preview
+ foreach my $param ( $cgi->param ) {
if ( $param =~ /^contact_class_(\w+)$/ ) {
push @contact_classnum, $1;
if ( $1 eq 'invoice' ) {
@@ -318,8 +318,10 @@ if ( $cgi->param('action') eq 'preview' ) {
}
}
}
+
}
+# and set up contact checkboxes for edit mode
my @contact_checkboxes = (
[ 'invoice' => { label => 'Invoice recipients' } ]
);