summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-10-01 14:39:47 -0700
committerChristopher Burger <burgerc@freeside.biz>2018-11-20 16:46:14 -0500
commit9e867f9412a7d52e7d95e265f742a28facfd3e8d (patch)
treefe16e7c29f59e2b84aa416694527d675aefb2699
parent482bcebb8d76081175201e444232b1408ea88e77 (diff)
fix error w/current perl - can't call keys on a scalar hashref anymore, RT#77532
Conflicts: httemplate/search/cust_main.html
-rwxr-xr-xhttemplate/search/cust_main.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/search/cust_main.html b/httemplate/search/cust_main.html
index 0d80b6dfe..d4b4fafc1 100755
--- a/httemplate/search/cust_main.html
+++ b/httemplate/search/cust_main.html
@@ -72,9 +72,13 @@ for my $param (qw( classnum refnum payby tagnum pkg_classnum )) {
$search_hash{$param} = [ $cgi->param($param) ];
}
+my $params = $cgi->Vars;
+
#contacts
$search_hash{'contacts'} = {
- map { $_ => $cgi->param($_), } grep { /^(contacts_*)/ && $cgi->param($_) } keys $cgi->Vars
+ map { $_ => $cgi->param($_), }
+ grep { /^(contacts_*)/ && $cgi->param($_) }
+ keys %$params
};
###