add forward and spam setting to inter.net portal, RT#13656
[freeside.git] / FS / FS / ClientAPI / MyAccount.pm
index 4021397..ac3ebdf 100644 (file)
@@ -1560,6 +1560,7 @@ sub acct_forward_info {
 
 sub process_acct_forward {
   my $p = shift;
+  warn Dumper($p);
 
   my($context, $session, $custnum) = _custoragent_session_custnum($p);
   return { 'error' => $session } if $context eq 'error';
@@ -1592,7 +1593,9 @@ sub process_acct_forward {
     my $conf = new FS::Conf;
     $new->svcpart($conf->config('selfservice-svc_forward_svcpart'));
     $new->pkgnum($old->cust_svc->pkgnum);
+    warn Dumper($new);
     $error = $new->insert;
+    warn $error;
   }
 
   return { 'error' => $error };