diff options
author | mark <mark> | 2010-09-23 23:21:06 +0000 |
---|---|---|
committer | mark <mark> | 2010-09-23 23:21:06 +0000 |
commit | 7f75baeccde8bf68e6914ce7efac73cdb7e7dcd0 (patch) | |
tree | a5f3dd722c99e3fef67d209dd90fda99aaf3c6c3 /httemplate/misc/xmlhttp-cust_main-search.cgi | |
parent | e6c54cd41c23d8c0da9d5e0f66c20a571470d435 (diff) |
fix use of agent_custid in quick payment entry, RT#10035
Diffstat (limited to 'httemplate/misc/xmlhttp-cust_main-search.cgi')
-rw-r--r-- | httemplate/misc/xmlhttp-cust_main-search.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/misc/xmlhttp-cust_main-search.cgi b/httemplate/misc/xmlhttp-cust_main-search.cgi index 26e68b5d8..615a4bb1e 100644 --- a/httemplate/misc/xmlhttp-cust_main-search.cgi +++ b/httemplate/misc/xmlhttp-cust_main-search.cgi @@ -2,10 +2,10 @@ % % my $custnum = $cgi->param('arg'); % my $cust_main = ''; -% if ( $custnum <= 2147483647 ) { +% if ( $custnum =~ /^(\d+)$/ and $1 <= 2147483647 ) { % $cust_main = qsearchs({ % 'table' => 'cust_main', -% 'hashref' => { 'custnum' => $custnum }, +% 'hashref' => { 'custnum' => $1 }, % 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql, % }); % } |