diff options
author | ivan <ivan> | 2007-10-29 12:04:52 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-10-29 12:04:52 +0000 |
commit | 4297bc81fdabab111d1231de807f14014f65d620 (patch) | |
tree | 6d699def27d74e711d45e2fa64ad6c314b0dc5ee /httemplate/search/cust_pkg.cgi | |
parent | cef858577f15128880dacbc944f20aa3142919ec (diff) |
bug ya bug resulting from agent-virtualized packages
Diffstat (limited to 'httemplate/search/cust_pkg.cgi')
-rwxr-xr-x | httemplate/search/cust_pkg.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi index 941a2e76c..5c209eba7 100755 --- a/httemplate/search/cust_pkg.cgi +++ b/httemplate/search/cust_pkg.cgi @@ -127,7 +127,7 @@ my @where = (); if ( $cgi->param('agentnum') =~ /^(\d+)$/ and $1 ) { push @where, - "agentnum = $1"; + "cust_main.agentnum = $1"; } ## @@ -274,7 +274,7 @@ if ( $cgi->param('magic') && ## # here is the agent virtualization -push @where, $FS::CurrentUser::CurrentUser->agentnums_sql; +push @where, $FS::CurrentUser::CurrentUser->agentnums_sql('table'=>'cust_main'); my $extra_sql = scalar(@where) ? ' WHERE '. join(' AND ', @where) : ''; |