fix internal_diddb delete & return number to availability, RT#4603
authorivan <ivan>
Tue, 13 Jan 2009 13:00:27 +0000 (13:00 +0000)
committerivan <ivan>
Tue, 13 Jan 2009 13:00:27 +0000 (13:00 +0000)
FS/FS/part_export/internal_diddb.pm

index c30d858..a330cb0 100644 (file)
@@ -100,7 +100,7 @@ sub _export_insert   { #link phone_avail to svcnum
 sub _export_delete   { #unlink phone_avail from svcnum
   my( $self, $svc_phone ) = (shift, shift);
 
-  $svc_phone =~ /^(\d{3})(\d{3})(\d+)$/
+  $svc_phone->phonenum =~ /^(\d{3})(\d{3})(\d+)$/
     or return "unparsable phone number: ". $svc_phone->phonenum;
   my( $npa, $nxx, $station ) = ($1, $2, $3);