summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_main.html
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2018-01-28 17:54:00 -0600
committerMitch Jackson <mitch@freeside.biz>2018-01-28 17:54:00 -0600
commit280c44682a79e586af941e869e7a78ca8f367cf2 (patch)
tree15de492977472329202c4089789a6a96a7a92b32 /httemplate/search/cust_main.html
parent4747bfbea3f4abb66d05a2bd1abed69e28a4aa3d (diff)
RT# 73421 Fix bug on some "Email customers" report links, docs
Diffstat (limited to 'httemplate/search/cust_main.html')
-rwxr-xr-xhttemplate/search/cust_main.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/httemplate/search/cust_main.html b/httemplate/search/cust_main.html
index 30162506f..0a43a82dd 100755
--- a/httemplate/search/cust_main.html
+++ b/httemplate/search/cust_main.html
@@ -140,8 +140,14 @@ my $menubar = [];
if ( $FS::CurrentUser::CurrentUser->access_right('Bulk send customer notices') ) {
+ # URI::query_from does not support hashref
+ # results in: ...&contacts=HASH(0x55e16cb81da8)&...
+ my %query_hash = %search_hash;
+ delete $query_hash{contacts}
+ if exists $query_hash{contacts} && ref $query_hash{contacts};
+
my $uri = new URI;
- $uri->query_form( \%search_hash );
+ $uri->query_form( \%query_hash );
my $query = $uri->query;
push @$menubar, emt('Email a notice to these customers') =>