[freeside-commits] branch FREESIDE_4_BRANCH updated. 893c5330eed4d2d8691cbdf89886a374efff2f05
Ivan
ivan at 420.am
Wed Jun 14 11:00:24 PDT 2017
The branch, FREESIDE_4_BRANCH has been updated
via 893c5330eed4d2d8691cbdf89886a374efff2f05 (commit)
from 2aecf34ff195b9c33126f483eb96299700ec5039 (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 893c5330eed4d2d8691cbdf89886a374efff2f05
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Jun 14 11:00:23 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 d11fdad..f6c3ff7 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -1520,8 +1520,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