diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2019-01-23 11:18:19 -0500 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2019-01-23 12:14:32 -0500 |
| commit | 3d325303535dc3ac9c1b15524140ba2794ad6a75 (patch) | |
| tree | d3f4b2780623f5298381b83423094fe7694bd689 | |
| parent | df674bc7d1e892a4464d79aa08b57162e278f53e (diff) | |
RT# 79352 - fixed insert error where new contacts not tied to customer on insert.
| -rw-r--r-- | FS/FS/contact.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
