summaryrefslogtreecommitdiff
path: root/httemplate/search
diff options
context:
space:
mode:
authorivan <ivan>2003-11-03 05:57:28 +0000
committerivan <ivan>2003-11-03 05:57:28 +0000
commitd9c51bdc266798d01247e0ff72f6d64aefb91a2e (patch)
treea8691e10d9bcb01f7aed083a64e25bb5086ccb6a /httemplate/search
parentde38e11cb5a40c78ef5543f59f6ce968e7fd613b (diff)
add suspended/canceled browse, fix the old suspended browse
Diffstat (limited to 'httemplate/search')
-rwxr-xr-xhttemplate/search/cust_pkg.cgi10
1 files changed, 2 insertions, 8 deletions
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi
index 1d54a53f6..3c3e17864 100755
--- a/httemplate/search/cust_pkg.cgi
+++ b/httemplate/search/cust_pkg.cgi
@@ -56,10 +56,10 @@ if ( $cgi->param('magic') && $cgi->param('magic') eq 'bill' ) {
$qual = 'WHERE ( susp IS NULL OR susp = 0 )'.
' AND ( cancel IS NULL OR cancel = 0)';
} elsif ( $cgi->param('magic') eq 'suspended' ) {
- $qual = 'WHERE susp IS NOT NULL AND susp > 0'.
+ $qual = 'WHERE susp IS NOT NULL AND susp != 0'.
' AND ( cancel IS NULL OR cancel = 0)';
} elsif ( $cgi->param('magic') eq 'canceled' ) {
- $qual = 'WHERE cancel IS NOT NULL AND cancel > 0';
+ $qual = 'WHERE cancel IS NOT NULL AND cancel != 0';
} else {
die "guru meditation #420";
}
@@ -74,12 +74,6 @@ if ( $cgi->param('magic') && $cgi->param('magic') eq 'bill' ) {
$sortby=\*pkgnum_sort;
- } elsif ( $query eq 'SUSP_pkgnum' ) {
-
- $sortby=\*pkgnum_sort;
-
- $qual = 'WHERE susp IS NOT NULL AND susp != 0';
-
} elsif ( $query eq 'APKG_pkgnum' ) {
$sortby=\*pkgnum_sort;