projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fef753a
)
fix emailing customers on deb 7, RT#72513, RT#33316
author
Ivan Kohler
<ivan@freeside.biz>
Sun, 25 Sep 2016 21:36:54 +0000
(14:36 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Sun, 25 Sep 2016 21:36:54 +0000
(14:36 -0700)
httemplate/misc/email-customers.html
patch
|
blob
|
history
diff --git
a/httemplate/misc/email-customers.html
b/httemplate/misc/email-customers.html
index
d086c67
..
b228b72
100644
(file)
--- a/
httemplate/misc/email-customers.html
+++ b/
httemplate/misc/email-customers.html
@@
-153,13
+153,13
@@
function toggle(obj) {
% # if we've already established a draft template, don't let msgnum be changed
<& /elements/hidden.html,
field => 'msgnum',
% # if we've already established a draft template, don't let msgnum be changed
<& /elements/hidden.html,
field => 'msgnum',
- curr_value => (
$cgi->param('msgnum'
) || ''),
+ curr_value => (
scalar($cgi->param('msgnum')
) || ''),
&>
% } else {
Template:
<& /elements/select-msg_template.html,
onchange => 'toggle(this)',
&>
% } else {
Template:
<& /elements/select-msg_template.html,
onchange => 'toggle(this)',
- curr_value => (
$cgi->param('msgnum'
) || ''),
+ curr_value => (
scalar($cgi->param('msgnum')
) || ''),
&>
<BR>
% }
&>
<BR>
% }
@@
-184,14
+184,14
@@
Send to contacts:
'value' => $conf->config('invoice_from_name', $agent_virt_agentnum) ||
$conf->config('company_name', $agent_virt_agentnum), #?
'size' => 20,
'value' => $conf->config('invoice_from_name', $agent_virt_agentnum) ||
$conf->config('company_name', $agent_virt_agentnum), #?
'size' => 20,
- 'curr_value' =>
$cgi->param('from_name'
),
+ 'curr_value' =>
scalar($cgi->param('from_name')
),
&> <\
<& /elements/input-text.html,
'field' => 'from_addr',
'type' => 'email', # HTML5, woot
'value' => $conf->config('invoice_from', $agent_virt_agentnum),
'size' => 20,
&> <\
<& /elements/input-text.html,
'field' => 'from_addr',
'type' => 'email', # HTML5, woot
'value' => $conf->config('invoice_from', $agent_virt_agentnum),
'size' => 20,
- 'curr_value' =>
$cgi->param('from_addr'
),
+ 'curr_value' =>
scalar($cgi->param('from_addr')
),
&>></TD>
<& /elements/tr-input-text.html,
&>></TD>
<& /elements/tr-input-text.html,
@@
-361,7
+361,9
@@
if ( !$cgi->param('preview') ) {
}
# contact_class_X params
}
# contact_class_X params
- foreach my $param ( $cgi->multi_param ) {
+ #we can't switch to multi_param until we're done supporting deb 7
+ local($CGI::LIST_CONTEXT_WARN) = 0;
+ foreach my $param ( $cgi->param ) {
if ( $param =~ /^contact_class_(\w+)$/ ) {
push @contact_classnum, $1;
if ( $1 eq 'invoice' ) {
if ( $param =~ /^contact_class_(\w+)$/ ) {
push @contact_classnum, $1;
if ( $1 eq 'invoice' ) {