add forward and spam setting to inter.net portal, RT#13656
authorivan <ivan>
Tue, 29 Nov 2011 02:36:46 +0000 (02:36 +0000)
committerivan <ivan>
Tue, 29 Nov 2011 02:36:46 +0000 (02:36 +0000)
FS/FS/ClientAPI/MyAccount.pm

index 4021397..1b32ce3 100644 (file)
@@ -1570,6 +1570,7 @@ sub process_acct_forward {
                            );
 
   if ( $p->{'dst'} eq '' ) {
+    warn Dumper($p);
     if ( $old ) {
       my $error = $old->delete;
       return { 'error' => $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 };