summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2003-08-05 21:00:43 +0000
committerivan <ivan>2003-08-05 21:00:43 +0000
commit117a674a7e37ff2f4f90fcf34710dfad288ac8a9 (patch)
treefc69641abaad8586b87e17e4ba12811d348c0173
parentaba697b7bf6a38c51d43612051ba7f7b5740f30f (diff)
doh, revert stuff that shouldn't have been checked in
-rwxr-xr-xhttemplate/browse/part_pkg.cgi9
1 files changed, 3 insertions, 6 deletions
diff --git a/httemplate/browse/part_pkg.cgi b/httemplate/browse/part_pkg.cgi
index 7b9436cee..2a167e8d6 100755
--- a/httemplate/browse/part_pkg.cgi
+++ b/httemplate/browse/part_pkg.cgi
@@ -24,7 +24,9 @@ if ( $cgi->param('active') ) {
$num_active_cust_pkg{$part_pkg->pkgpart} =
$active_sth->fetchrow_arrayref->[0];
}
- $sortby = \*active_cust_pkg_sort;
+ $sortby = sub {
+ $num_active_cust_pkg{$b->pkgpart} <=> $num_active_cust_pkg{$a->pkgpart};
+ };
} else {
$sortby = \*pkgpart_sort;
}
@@ -132,13 +134,8 @@ print <<END;
</HTML>
END
-
sub pkgpart_sort {
$a->pkgpart <=> $b->pkgpart;
}
-sub active_cust_pkg_sort {
- $num_active_cust_pkg{$b->pkgpart} <=> $num_active_cust_pkg{$a->pkgpart};
-}
-
%>