[freeside-commits] branch FREESIDE_4_BRANCH updated. d24ce48228902a99a9f8e77e70970ecc587c6ccf

Ivan Kohler ivan at freeside.biz
Wed Nov 28 13:17:51 PST 2018


The branch, FREESIDE_4_BRANCH has been updated
       via  d24ce48228902a99a9f8e77e70970ecc587c6ccf (commit)
      from  d20626460a7b547c88d06b30c6a279069ef3b17d (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 d24ce48228902a99a9f8e77e70970ecc587c6ccf
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Nov 28 13:17:50 2018 -0800

    fix error linking legacy services, RT#81818

diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm
index 4aa7504f7..9e16142e0 100644
--- a/FS/FS/cust_svc.pm
+++ b/FS/FS/cust_svc.pm
@@ -453,8 +453,10 @@ sub replace {
   #my $error = $new->SUPER::replace($old, @_);
   my $error = $new->SUPER::replace($old);
 
-  #trigger a relocate export on location changes
-  if ( $new->cust_pkg->locationnum != $old->cust_pkg->locationnum ) {
+  #trigger a relocate export on location changes (NENA2 and Northern 911 export)
+  my $old_pkg = $old->cust_pkg;
+  my $new_pkg = $new->cust_pkg;
+  if ( $old_pkg && $new_pkg && $new_pkg->locationnum != $old_pkg->locationnum ) {
     my $svc_x = $new->svc_x;
     if ( $svc_x->locationnum ) {
       if ( $svc_x->locationnum == $old->cust_pkg->locationnum ) {

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

Summary of changes:
 FS/FS/cust_svc.pm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list