[freeside-commits] branch FREESIDE_4_BRANCH updated. 3d325303535dc3ac9c1b15524140ba2794ad6a75

Christopher Burger burgerc at freeside.biz
Wed Jan 23 09:19:13 PST 2019


The branch, FREESIDE_4_BRANCH has been updated
       via  3d325303535dc3ac9c1b15524140ba2794ad6a75 (commit)
      from  df674bc7d1e892a4464d79aa08b57162e278f53e (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 3d325303535dc3ac9c1b15524140ba2794ad6a75
Author: Christopher Burger <burgerc at freeside.biz>
Date:   Wed Jan 23 11:18:19 2019 -0500

    RT# 79352 - fixed insert error where new contacts not tied to customer on insert.

diff --git a/FS/FS/contact.pm b/FS/FS/contact.pm
index 5c7e29eba..03023e5e7 100644
--- a/FS/FS/contact.pm
+++ b/FS/FS/contact.pm
@@ -168,7 +168,6 @@ sub insert {
   my $existing_contact = '';
   my @contact_emails = ();
   my %contact_nums = ();
-  $contact_nums{$self->contactnum} = '1' if $self->contactnum;
 
   if ( $self->get('emailaddress') =~ /\S/ ) {
 
@@ -202,6 +201,8 @@ sub insert {
     return $error;
   }
 
+  $contact_nums{$self->contactnum} = '1' if $self->contactnum;
+
   my $cust_contact = '';
   # if $self->custnum was set, then the customer-specific properties
   # (custnum, classnum, invoice_dest, selfservice_access, comment) are in

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

Summary of changes:
 FS/FS/contact.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list