[freeside-commits] branch master updated. 12b91e6f2cbf37644b77e42d7353fab325b6a71d
Ivan
ivan at 420.am
Wed Jun 14 11:00:21 PDT 2017
The branch, master has been updated
via 12b91e6f2cbf37644b77e42d7353fab325b6a71d (commit)
from d040dd06eb4b4bd1d5991445038296f952a38d13 (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 12b91e6f2cbf37644b77e42d7353fab325b6a71d
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Jun 14 11:00:20 2017 -0700
fix error on changing customer when there isn't an implicit contact, RT#76405
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 23d54b6..f8157c4 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -1523,8 +1523,10 @@ sub replace {
custnum => $self->custnum,
}
);
- $implicit_contact->set($_, $i_cust_contact->$_)
- foreach qw( classnum selfservice_access comment );
+ if ( $i_cust_contact ) {
+ $implicit_contact->set($_, $i_cust_contact->$_)
+ foreach qw( classnum selfservice_access comment );
+ }
my $error;
if ( $implicit_contact->contactnum ) {
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_main.pm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list