[freeside-commits] freeside/FS/FS cust_pkg.pm,1.139.2.8,1.139.2.9
Jeff Finucane,420,,
jeff at wavetail.420.am
Sat Jan 16 16:22:25 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv14594
Modified Files:
Tag: FREESIDE_1_9_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.139.2.8
retrieving revision 1.139.2.9
diff -u -d -r1.139.2.8 -r1.139.2.9
--- cust_pkg.pm 23 Dec 2009 21:22:15 -0000 1.139.2.8
+++ cust_pkg.pm 17 Jan 2010 00:22:23 -0000 1.139.2.9
@@ -1535,6 +1535,9 @@
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] }
map {
More information about the freeside-commits
mailing list