[freeside-commits] freeside/httemplate/misc xmlhttp-cust_main-search.cgi, 1.6, 1.7
Mark Wells
mark at wavetail.420.am
Thu Sep 23 16:21:08 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv13261/misc
Modified Files:
xmlhttp-cust_main-search.cgi
Log Message:
fix use of agent_custid in quick payment entry, RT#10035
Index: xmlhttp-cust_main-search.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/xmlhttp-cust_main-search.cgi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -w -d -r1.6 -r1.7
--- xmlhttp-cust_main-search.cgi 24 Oct 2008 02:08:21 -0000 1.6
+++ xmlhttp-cust_main-search.cgi 23 Sep 2010 23:21:05 -0000 1.7
@@ -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,
% });
% }
More information about the freeside-commits
mailing list