projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag 'freeside_2_1_1'.
[freeside.git]
/
httemplate
/
misc
/
xmlhttp-cust_main-search.cgi
diff --git
a/httemplate/misc/xmlhttp-cust_main-search.cgi
b/httemplate/misc/xmlhttp-cust_main-search.cgi
index
26e68b5
..
615a4bb
100644
(file)
--- 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 = '';
%
% my $custnum = $cgi->param('arg');
% my $cust_main = '';
-% if ( $custnum <= 2147483647 ) {
+% if ( $custnum
=~ /^(\d+)$/ and $1
<= 2147483647 ) {
% $cust_main = qsearchs({
% 'table' => 'cust_main',
% $cust_main = qsearchs({
% 'table' => 'cust_main',
-% 'hashref' => { 'custnum' => $
custnum
},
+% 'hashref' => { 'custnum' => $
1
},
% 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql,
% });
% }
% 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql,
% });
% }