fix svc_phone provisioning with new location, RT#34069
authorIvan Kohler <ivan@freeside.biz>
Thu, 7 May 2015 20:02:51 +0000 (13:02 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 7 May 2015 20:02:51 +0000 (13:02 -0700)
FS/FS/svc_phone.pm

index fba232d..460addc 100644 (file)
@@ -346,6 +346,7 @@ sub insert {
   #false laziness w/cust_pkg.pm... move this to location_Mixin?  that would
   #make it more of a base class than a mixin... :)
   if ( $options{'cust_location'} ) {
+    $options{'cust_location'}->custnum( $self->cust_svc->cust_pkg->custnum );
     my $error = $options{'cust_location'}->find_or_insert;
     if ( $error ) {
       $dbh->rollback if $oldAutoCommit;