summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorivan <ivan>2009-12-19 19:09:30 +0000
committerivan <ivan>2009-12-19 19:09:30 +0000
commitc1d8e2288d9b44823bd9216c5e96ba9d052a04bd (patch)
treec358f77add7183d1e31dc187de3887e7d307c2cd /httemplate/misc
parentfafdaeca1af0771cefd8f6707b0f75ee8a33f03a (diff)
fix order of packages after class selection changes
Diffstat (limited to 'httemplate/misc')
-rw-r--r--httemplate/misc/cust-part_pkg.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/misc/cust-part_pkg.cgi b/httemplate/misc/cust-part_pkg.cgi
index a249f033f..974ac0e87 100644
--- a/httemplate/misc/cust-part_pkg.cgi
+++ b/httemplate/misc/cust-part_pkg.cgi
@@ -20,10 +20,11 @@ my @part_pkg = qsearch({
'extra_sql' =>
' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql( 'null'=>1 ).
' AND '. FS::part_pkg->agent_pkgs_sql( $cust_main->agent ),
+ 'order_by' => 'ORDER BY pkg',
});
my @return = map { $_->pkgpart => $_->pkg_comment }
- sort { $a->pkg_comment cmp $b->pkg_comment }
+ #sort { $a->pkg_comment cmp $b->pkg_comment }
@part_pkg;
</%init>