[freeside-commits] branch master updated. c145d0efaf3c9d43ca6cad0ec36342f92a6dd646
Ivan
ivan at 420.am
Wed May 31 18:25:48 PDT 2017
The branch, master has been updated
via c145d0efaf3c9d43ca6cad0ec36342f92a6dd646 (commit)
from b5e8459bb1b5775edb0f55b05a9a7b1021b49621 (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 c145d0efaf3c9d43ca6cad0ec36342f92a6dd646
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed May 31 18:25:47 2017 -0700
fix self-service info edit turning off self-service contact access, RT#76209
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 19a5816..640eee3 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -1509,6 +1509,14 @@ sub replace {
$implicit_contact->set('emailaddress', $email);
$implicit_contact->set('invoice_dest', 'Y');
$implicit_contact->set('custnum', $self->custnum);
+ my $i_cust_contact =
+ qsearchs('cust_contact', {
+ contactnum => $implicit_contact->contactnum,
+ custnum => $self->custnum,
+ }
+ );
+ $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 | 8 ++++++++
1 file changed, 8 insertions(+)
More information about the freeside-commits
mailing list