diff options
-rwxr-xr-x | httemplate/search/cust_pay.cgi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/httemplate/search/cust_pay.cgi b/httemplate/search/cust_pay.cgi index 6215b4b2f..0eefd2b50 100755 --- a/httemplate/search/cust_pay.cgi +++ b/httemplate/search/cust_pay.cgi @@ -154,6 +154,12 @@ if ( $cgi->param('magic') ) { } } + if ( $cgi->param('payinfo') ) { + $cgi->param('payinfo') =~ /^\s*(\d+)\s*$/ + or die "illegal payinfo ". $cgi->param('payinfo'); + push @search, "cust_pay.payinfo = '$1'"; + } + my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi); push @search, "_date >= $beginning ", "_date <= $ending"; @@ -198,6 +204,8 @@ if ( $cgi->param('magic') ) { } else { + #hmm... is this still used? + $cgi->param('payinfo') =~ /^\s*(\d+)\s*$/ or die "illegal payinfo"; my $payinfo = $1; |