summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-10-01 14:39:47 -0700
committerIvan Kohler <ivan@freeside.biz>2017-10-01 14:39:47 -0700
commitcd1555c36924e21a9894b29071d76911ec277d9a (patch)
treef98e9fe39e837a52797219c63972420a7cff1ebe
parent5ea451e310506e07a26887897c5051bb02ab62d1 (diff)
fix error w/current perl - can't call keys on a scalar hashref anymore, RT#77532
-rwxr-xr-xhttemplate/search/cust_main.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/httemplate/search/cust_main.html b/httemplate/search/cust_main.html
index 7197bbde7..cb8d66ef8 100755
--- a/httemplate/search/cust_main.html
+++ b/httemplate/search/cust_main.html
@@ -68,16 +68,20 @@ for my $param (qw( classnum refnum 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
};
#tags
-my $params = $cgi->Vars;
$search_hash{'tagnum'} = [
map { /^tagnum(\d+)/ && $1 }
- grep { /^tagnum(\d+)/ && $cgi->param($_) } keys %$params
+ grep { /^tagnum(\d+)/ && $cgi->param($_) }
+ keys %$params
];
###