[freeside-commits] branch master updated. 15bce35bccac95bdc7649743787cf890d8790943
Christopher Burger
burgerc at freeside.biz
Tue Oct 23 08:31:43 PDT 2018
The branch, master has been updated
via 15bce35bccac95bdc7649743787cf890d8790943 (commit)
from 63488b6ec28a6546bb8d43b7b1273d0362d99b57 (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 15bce35bccac95bdc7649743787cf890d8790943
Author: Christopher Burger <burgerc at freeside.biz>
Date: Tue Oct 23 11:07:45 2018 -0400
RT# 71289 - fixed error of saving duplicate data when editing contacts
diff --git a/FS/FS/contact.pm b/FS/FS/contact.pm
index 81dfdbc01..d6869abc8 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->$_('');
}
-----------------------------------------------------------------------
Summary of changes:
FS/FS/contact.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list