From: ivan Date: Sat, 19 Dec 2009 19:09:31 +0000 (+0000) Subject: fix order of packages after class selection changes X-Git-Tag: freeside_1_9_2~179 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=a7d270c86521dd85a0bf632a25770d2ceb9722fd;p=freeside.git fix order of packages after class selection changes --- 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;