summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--httemplate/search/elements/grouped-search/html2
-rw-r--r--httemplate/search/elements/report_cust_pay_or_refund.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/search/elements/grouped-search/html b/httemplate/search/elements/grouped-search/html
index 293da338f..9c2418af8 100644
--- a/httemplate/search/elements/grouped-search/html
+++ b/httemplate/search/elements/grouped-search/html
@@ -11,8 +11,8 @@ my $redirect;
if ( $group_info->{num} == 0 ) {
$redirect = $opt{'redirect_empty'};
+ $redirect = &$redirect($cgi) if $redirect && ref($redirect) eq 'CODE';
if ($redirect) {
- $redirect = &$redirect($cgi) if ref($redirect) eq 'CODE';
redirect( $redirect );
} else { # just print this stuff and exit
$m->comp('/elements/header.html', $opt{'title'});
diff --git a/httemplate/search/elements/report_cust_pay_or_refund.html b/httemplate/search/elements/report_cust_pay_or_refund.html
index 806746a23..1cc77f728 100644
--- a/httemplate/search/elements/report_cust_pay_or_refund.html
+++ b/httemplate/search/elements/report_cust_pay_or_refund.html
@@ -30,7 +30,7 @@ Examples:
<& /elements/tr-select.html,
label => ucfirst(PL($name_singular)) . ' of type:',
field => 'payby',
- options => [ keys(\%payby) ],
+ options => [ keys %payby ],
labels => \%payby,
multiple => 1,
size => 18,