[freeside-commits] branch FREESIDE_3_BRANCH updated. eb649eb7b8851a07a36955a26685d061b46e4593

Jeremy Davis jeremyd at 420.am
Mon Sep 8 07:14:20 PDT 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  eb649eb7b8851a07a36955a26685d061b46e4593 (commit)
      from  464cbc7302c2c77aba5317c15d8753942b5e8dd4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit eb649eb7b8851a07a36955a26685d061b46e4593
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Mon Sep 8 10:14:14 2014 -0400

    #14049 Fix error

diff --git a/FS/FS/part_export/nena2.pm b/FS/FS/part_export/nena2.pm
index e172a15..fa3597b 100644
--- a/FS/FS/part_export/nena2.pm
+++ b/FS/FS/part_export/nena2.pm
@@ -224,15 +224,15 @@ sub data {
   my %hash = map { $_ => '' } @{ $item_format->names };
 
   $hash{function_code} = $function_code{$action};
-
+  
   # Add default area code if phonenum is 7 digits
-  if ($self->option('area_code') =~ /^\d{3}$/ && $svc->phonenum =~ /^\d{7}$/ ){
-  $svc->phonenum = $self->option('area_code'). $svc->phonenum;
+  my $phonenum = $svc->phonenum;
+  if ($self->option('area_code') =~ /^\d{3}$/ && $phonenum =~ /^\d{7}$/ ){
+  $phonenum = $self->option('area_code'). $svc->phonenum;
   }
  
   # phone number
-  
-  $svc->phonenum =~ /^(\d{3})(\d*)$/;
+  $phonenum =~ /^(\d{3})(\d*)$/;
   $hash{npa} = $1;
   $hash{calling_number} = $2;
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_export/nena2.pm |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)




More information about the freeside-commits mailing list