[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.133.2.31, 1.133.2.32
Ivan,,,
ivan at wavetail.420.am
Mon Nov 28 18:21:42 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv25114/FS/FS/ClientAPI
Modified Files:
Tag: FREESIDE_2_3_BRANCH
MyAccount.pm
Log Message:
add forward and spam setting to inter.net portal, RT#13656
Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.133.2.31
retrieving revision 1.133.2.32
diff -u -w -d -r1.133.2.31 -r1.133.2.32
--- MyAccount.pm 29 Nov 2011 01:55:15 -0000 1.133.2.31
+++ MyAccount.pm 29 Nov 2011 02:21:40 -0000 1.133.2.32
@@ -1584,8 +1584,14 @@
my $error;
if ( $old ) {
$new->svcnum($old->svcnum);
+ my $cust_svc = $old->cust_svc;
+ $new->svcpart($old->svcpart);
+ $new->pkgnuym($old->pkgnum);
$error = $new->replace($old);
} else {
+ my $conf = new FS::Conf;
+ $new->svcpart($conf->config('selfservice-svc_forward_svcpart'));
+ $new->pkgnum($old->cust_svc->pkgnum);
$error = $new->insert;
}
More information about the freeside-commits
mailing list