diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2019-01-03 12:38:32 -0500 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2019-01-03 12:59:41 -0500 |
| commit | 50faa8e28abb61ba518b055e6852b0a2185237aa (patch) | |
| tree | 6c49f8fa4e44a88897154ba49741237a918829e3 /httemplate/misc | |
| parent | 9030875d1d7e8078292d50652a87dca6306eca85 (diff) | |
RT 81913 - fixed error with batch email from advanced customer reports and contacts report
Conflicts:
httemplate/search/contact.html
httemplate/search/cust_main.html
Diffstat (limited to 'httemplate/misc')
| -rw-r--r-- | httemplate/misc/email-customers.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/httemplate/misc/email-customers.html b/httemplate/misc/email-customers.html index 1c22f8ffd..577e5df8b 100644 --- a/httemplate/misc/email-customers.html +++ b/httemplate/misc/email-customers.html @@ -168,7 +168,7 @@ Template: }, &> </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> @@ -295,6 +295,15 @@ else { @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, |
