[freeside-commits] freeside/FS/FS/part_export vitelity.pm, 1.1.8.2, 1.1.8.3
Erik Levinson
levinse at wavetail.420.am
Fri Jan 7 16:42:39 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv18097/FS/FS/part_export
Modified Files:
Tag: FREESIDE_2_1_BRANCH
vitelity.pm
Log Message:
Vitelity DID provisioning, change RC sorting, RT4868
Index: vitelity.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/vitelity.pm,v
retrieving revision 1.1.8.2
retrieving revision 1.1.8.3
diff -u -w -d -r1.1.8.2 -r1.1.8.3
--- vitelity.pm 20 Nov 2010 04:50:50 -0000 1.1.8.2
+++ vitelity.pm 8 Jan 2011 00:42:37 -0000 1.1.8.3
@@ -62,10 +62,8 @@
# you can't call $->name .... that returns "(unlinked)"
# and in any case this is still major abuse of encapsulation, it just happens to work for the other fields
- return [
- map { $_->{'Hash'}->{name}.' ('. $_->npa. '-'. $_->nxx. '-XXXX)' }
+ @rc = map { $_->{'Hash'}->{name}.' ('. $_->npa. '-'. $_->nxx. '-XXXX)' }
qsearch({
- # i know this doesn't do the same thing as before, but now the sort works
'select' => 'DISTINCT npa,nxx,name',
'table' => 'phone_avail',
'hashref' => { 'exportnum' => $self->exportnum,
@@ -73,8 +71,10 @@
'npa' => $opt{'areacode'},
},
'order_by' => 'ORDER BY nxx',
- })
- ];
+ });
+
+ @sorted_rc = sort @rc;
+ return [ @sorted_rc ];
} elsif ( $opt{'state'} ) { #and not other things, then return areacode
More information about the freeside-commits
mailing list