From: Ivan Kohler Date: Fri, 21 Oct 2016 19:34:52 +0000 (-0700) Subject: fix unapplied payment report, RT#73048, fallout from #25944 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=41fc6d0a8aa5921638ac2767265a7528855a5251 fix unapplied payment report, RT#73048, fallout from #25944 --- 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,