summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_pkg.cgi
diff options
context:
space:
mode:
authorivan <ivan>2007-04-23 23:34:53 +0000
committerivan <ivan>2007-04-23 23:34:53 +0000
commita871773fe1a4880d883fb14db0f260227ff0f7cd (patch)
tree0817b2e3ecfe75832df21196b5b643cbebb86ae0 /httemplate/search/cust_pkg.cgi
parent1630fe1a8190feb6f0e7a1187333e01af9bea3f2 (diff)
fix error: column reference "fieldname" is ambiguous
Diffstat (limited to 'httemplate/search/cust_pkg.cgi')
-rwxr-xr-xhttemplate/search/cust_pkg.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi
index 84b083a3d..4fd5e9d45 100755
--- a/httemplate/search/cust_pkg.cgi
+++ b/httemplate/search/cust_pkg.cgi
@@ -225,11 +225,11 @@ foreach my $field (qw( setup last_bill bill susp expire cancel )) {
or $disable{$cgi->param('status')}->{$field};
push @where,
- "$field IS NOT NULL",
- "$field >= $beginning",
- "$field <= $ending";
+ "cust_pkg.$field IS NOT NULL",
+ "cust_pkg.$field >= $beginning",
+ "cust_pkg.$field <= $ending";
- $orderby ||= "ORDER BY $field";
+ $orderby ||= "ORDER BY cust_pkg.$field";
}