summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorivan <ivan>2009-12-19 19:09:31 +0000
committerivan <ivan>2009-12-19 19:09:31 +0000
commita7d270c86521dd85a0bf632a25770d2ceb9722fd (patch)
treed90c2368e0d17404f8dec3eae6fea59ca6ef6665 /httemplate/misc
parent914ac6a887a2c9ba83200e2b7a3b28975e922987 (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>