projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cef8585
)
bug ya bug resulting from agent-virtualized packages
author
ivan
<ivan>
Mon, 29 Oct 2007 12:04:52 +0000
(12:04 +0000)
committer
ivan
<ivan>
Mon, 29 Oct 2007 12:04:52 +0000
(12:04 +0000)
httemplate/search/cust_pkg.cgi
patch
|
blob
|
history
diff --git
a/httemplate/search/cust_pkg.cgi
b/httemplate/search/cust_pkg.cgi
index
941a2e7
..
5c209eb
100755
(executable)
--- 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,
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
##
# 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) : '';
my $extra_sql = scalar(@where) ? ' WHERE '. join(' AND ', @where) : '';