summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-10-21 12:34:52 -0700
committerIvan Kohler <ivan@freeside.biz>2016-10-21 12:34:52 -0700
commit41fc6d0a8aa5921638ac2767265a7528855a5251 (patch)
tree0f805efe845b036d98eca27ddbea9740c8af71c9
parentae2ce7f3fc2a0fe00f05145ce64e8b6b8c034631 (diff)
fix unapplied payment report, RT#73048, fallout from #25944
-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,