X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_main.html;h=f6c6c62d8ba77c3ee61d5cea3468972ae615d6ba;hp=0a43a82ddc1961d8ff6de24b2e4725e718dc5496;hb=e92db24ac60d0fdcb8f8d3b383ab727af6de6d44;hpb=280c44682a79e586af941e869e7a78ca8f367cf2 diff --git a/httemplate/search/cust_main.html b/httemplate/search/cust_main.html index 0a43a82dd..f6c6c62d8 100755 --- a/httemplate/search/cust_main.html +++ b/httemplate/search/cust_main.html @@ -140,9 +140,14 @@ my $menubar = []; if ( $FS::CurrentUser::CurrentUser->access_right('Bulk send customer notices') ) { + # set so invoice emails are default if showing that field. + $search_hash{'classnums'} = 'invoice' if $cgi->param('cust_fields') =~ /Invoicing email/; + # 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};