projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT 81913 - fixed error with batch email from advanced customer reports and contacts...
[freeside.git]
/
httemplate
/
misc
/
email-customers.html
diff --git
a/httemplate/misc/email-customers.html
b/httemplate/misc/email-customers.html
index
3f8816c
..
b631165
100644
(file)
--- a/
httemplate/misc/email-customers.html
+++ b/
httemplate/misc/email-customers.html
@@
-184,7
+184,7
@@
Template:
},
&>
</div>
},
&>
</div>
-% if ($send_to_domain) {
+% if ($send_to_domain
&& $cgi->param('custnum')
) {
<div>
<INPUT TYPE="checkbox" NAME="emailtovoice" ID="emailtovoice" VALUE="ON" onclick="toggleDiv(this)">Email to voice
</div>
<div>
<INPUT TYPE="checkbox" NAME="emailtovoice" ID="emailtovoice" VALUE="ON" onclick="toggleDiv(this)">Email to voice
</div>
@@
-326,6
+326,15
@@
else {
@search{keys %search} = map { /\0/ ? [ split /\0/, $_ ] : $_ } values %search;
}
@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,
&{$opt{'post_search_hook'}}(
'conf' => $conf,
'search' => \%search,