X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcontact.pm;h=9775e7f6b3fb77f69785f1c3d03bbf941cf21d14;hb=8b970de57d50e41b2f64f48dd372ba8473962933;hp=13f07a2838c3559cecefa78d5f89fe0aada14607;hpb=5ef60116554ff9dbd01bbb4daa4e1ba098905311;p=freeside.git diff --git a/FS/FS/contact.pm b/FS/FS/contact.pm index 13f07a283..9775e7f6b 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