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/search/cust_main.html | |
| 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/search/cust_main.html')
| -rwxr-xr-x | httemplate/search/cust_main.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/search/cust_main.html b/httemplate/search/cust_main.html index d4b4fafc1..7cfe5ec9b 100755 --- a/httemplate/search/cust_main.html +++ b/httemplate/search/cust_main.html @@ -133,8 +133,16 @@ 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; + foreach (keys %{$query_hash{contacts}}) { $query_hash{$_} = $query_hash{contacts}{$_}; } + + 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') => |
