[freeside-commits] freeside/FS/FS cust_pkg.pm,1.73.2.32,1.73.2.33
Jeff Finucane,420,,
jeff at wavetail.420.am
Sat Jan 16 19:10:43 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv20640
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_pkg.pm
Log Message:
work around bug in pre-perl5.10 which is at best noisy and at worst missorting
Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.73.2.32
retrieving revision 1.73.2.33
diff -u -d -r1.73.2.32 -r1.73.2.33
--- cust_pkg.pm 13 Aug 2009 15:18:22 -0000 1.73.2.32
+++ cust_pkg.pm 17 Jan 2010 03:10:41 -0000 1.73.2.33
@@ -1173,8 +1173,12 @@
sub _sort_cust_svc {
my( $self, $arrayref ) = @_;
+ my $sort =
+ sub ($$) { my ($a, $b) = @_; $b->[1] cmp $a->[1] or $a->[2] <=> $b->[2]
+};
+
map { $_->[0] }
- sort { $b->[1] cmp $a->[1] or $a->[2] <=> $b->[2] }
+ sort $sort
map {
my $pkg_svc = qsearchs( 'pkg_svc', { 'pkgpart' => $self->pkgpart,
'svcpart' => $_->svcpart } );
More information about the freeside-commits
mailing list