summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-10-23 11:07:45 -0400
committerChristopher Burger <burgerc@freeside.biz>2018-10-23 11:41:37 -0400
commitc18ec0f6b17d602909aaa2cbbe06fff4dcba98ec (patch)
tree55573e8e1e5f496f7798fc65640e08d5d7415ce3
parentea2203e7bfa850d6e74338614130346d45c1bcbb (diff)
RT# 71289 - fixed error of saving duplicate data when editing contacts
-rw-r--r--FS/FS/contact.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/contact.pm b/FS/FS/contact.pm
index 9505dee35..094feea74 100644
--- a/FS/FS/contact.pm
+++ b/FS/FS/contact.pm
@@ -434,11 +434,12 @@ sub replace {
my $prospectnum = $self->prospectnum;
$self->prospectnum('');
my $custnum = $self->custnum;
- $self->custnum('');
+ $self->custnum(''); $old->custnum(''); # remove because now stored cust_contact
my %link_hash = ();
for (qw( classnum comment selfservice_access invoice_dest message_dest )) {
$link_hash{$_} = $self->get($_);
+ $old->$_(''); ##remove values from old record, causes problem with history
$self->$_('');
}