diff options
author | Mitch Jackson <mitch@freeside.biz> | 2018-01-28 17:54:00 -0600 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2018-09-25 22:36:05 -0400 |
commit | 3431eb1f893dafd05056eb65276a8e9122f9fd31 (patch) | |
tree | 8c18a6e140137077901a5aa46fb49430461734de /httemplate/search | |
parent | 087d74f7289c302b7b79a97df4ae0f354ef45922 (diff) |
RT# 73421 Fix bug on some "Email customers" report links, docs
Diffstat (limited to 'httemplate/search')
-rwxr-xr-x | httemplate/search/cust_main.html | 8 |
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') => |