[freeside-commits] freeside/FS/FS cust_pkg.pm,1.149,1.150
Jeff Finucane,420,,
jeff at wavetail.420.am
Sat Jan 16 16:22:09 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv14546
Modified Files:
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.149
retrieving revision 1.150
diff -u -d -r1.149 -r1.150
--- cust_pkg.pm 23 Dec 2009 21:21:14 -0000 1.149
+++ cust_pkg.pm 17 Jan 2010 00:22:07 -0000 1.150
@@ -1535,8 +1535,11 @@
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