[freeside-commits] branch FREESIDE_4_BRANCH updated. c18ec0f6b17d602909aaa2cbbe06fff4dcba98ec
Christopher Burger
burgerc at freeside.biz
Tue Oct 23 08:53:52 PDT 2018
The branch, FREESIDE_4_BRANCH has been updated
via c18ec0f6b17d602909aaa2cbbe06fff4dcba98ec (commit)
from ea2203e7bfa850d6e74338614130346d45c1bcbb (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 c18ec0f6b17d602909aaa2cbbe06fff4dcba98ec
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 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->$_('');
}
-----------------------------------------------------------------------
Summary of changes:
FS/FS/contact.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list