diff options
author | ivan <ivan> | 2007-09-29 02:17:48 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-09-29 02:17:48 +0000 |
commit | 4b5c6ba830fe2845a0055e1fcf5af0c7e8b8cd0c (patch) | |
tree | 4f79e06b5214a13597258acc1d8e528cd884dc32 /httemplate/search/cust_event.html | |
parent | 11f1a064f3618bac4078c8ae86654b3182ec0e07 (diff) |
fix ambiguous agentnum errors in cust_event.html & report_tax.cgi (provide a table option in access_user::agentnums_sql so this is easy to fix for other reports too)
Diffstat (limited to 'httemplate/search/cust_event.html')
-rw-r--r-- | httemplate/search/cust_event.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/httemplate/search/cust_event.html b/httemplate/search/cust_event.html index f9cce46ca..dc6fd0582 100644 --- a/httemplate/search/cust_event.html +++ b/httemplate/search/cust_event.html @@ -151,7 +151,7 @@ my $title = $cgi->param('failed') my @search = (); if ( $cgi->param('agentnum') && $cgi->param('agentnum') =~ /^(\d+)$/ ) { - push @search, "agentnum = $1"; + push @search, "cust_main.agentnum = $1"; #my $agent = qsearchs('agent', { 'agentnum' => $1 } ); #die "unknown agentnum $1" unless $agent; } @@ -183,9 +183,7 @@ if ( $cgi->param('pkgnum') =~ /^(\d+)$/ ) { } #here is the agent virtualization -my $agent_sql = $curuser->agentnums_sql; -$agent_sql =~ s/agentnum/cust_main.agentnum/g; -push @search, $agent_sql; +push @search, $curuser->agentnums_sql( 'table' => 'cust_main' ); my $where = 'WHERE '. join(' AND ', @search ); |