[freeside-commits] freeside/FS/FS/part_export internal_diddb.pm, 1.3, 1.4

Ivan,,, ivan at wavetail.420.am
Wed Dec 3 09:25:46 PST 2008


Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv14943

Modified Files:
	internal_diddb.pm 
Log Message:
fix internal_diddb to default to countrycode 1

Index: internal_diddb.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/internal_diddb.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- internal_diddb.pm	24 Nov 2008 10:59:49 -0000	1.3
+++ internal_diddb.pm	3 Dec 2008 17:25:44 -0000	1.4
@@ -25,7 +25,7 @@
   my $self = shift;
   my %opt = ref($_[0]) ? %{$_[0]} : @_;
 
-  my %hash = ( 'countrycode' => $self->option('countrycode'),
+  my %hash = ( 'countrycode' => ( $self->option('countrycode') || '1' ),
                'exportnum'   => $self->exportnum,
                'svcnum'      => '',
              );
@@ -80,7 +80,7 @@
   my( $npa, $nxx, $station ) = ($1, $2, $3);
 
   my $phone_avail = qsearchs('phone_avail', {
-    'countrycode' => $self->option('countrycode'),
+    'countrycode' => ( $self->option('countrycode') || '1' ),
     'exportnum'   => $self->exportnum,
     'svcnum'      => '',
     'npa'         => $npa,
@@ -105,7 +105,7 @@
   my( $npa, $nxx, $station ) = ($1, $2, $3);
 
   my $phone_avail = qsearchs('phone_avail', {
-    'countrycode' => $self->option('countrycode'),
+    'countrycode' => ( $self->option('countrycode') || '1'),
     'exportnum'   => $self->exportnum,
     'svcnum'      => $svc_phone->svcnum,
     #these too?



More information about the freeside-commits mailing list