summaryrefslogtreecommitdiff
path: root/FS/FS/contact.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-02-03 07:18:45 -0800
committerIvan Kohler <ivan@freeside.biz>2015-02-03 07:18:45 -0800
commitaeb90ade381fc3d5477db0334048c2af623fccfe (patch)
treed1540f5ccef513d10193c124fa6aeaae743ba107 /FS/FS/contact.pm
parent167dbdad01e2c1b62fd9be43cc05212e8c874a02 (diff)
parentd9edf24e9d3e1fd87a23359a7679ef6d6637c00d (diff)
contacts can be shared among customers / "duplicate contact emails", RT#27943
Diffstat (limited to 'FS/FS/contact.pm')
-rw-r--r--FS/FS/contact.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/contact.pm b/FS/FS/contact.pm
index 07458c742..589fc7c19 100644
--- a/FS/FS/contact.pm
+++ b/FS/FS/contact.pm
@@ -464,6 +464,8 @@ sub replace {
next;
}
+ $contact_phone ||= new FS::contact_phone \%cp;
+
my %cpd = _parse_phonestring( $self->get($pf) );
$contact_phone->set( $_ => $cpd{$_} ) foreach keys %cpd;