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

index 6e56d78..4021397 100644 (file)
@@ -1584,8 +1584,14 @@ sub process_acct_forward {
   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;
   }
 
index a3fabc7..acaac75 100644 (file)
@@ -2475,6 +2475,13 @@ and customer address. Include units.',
   },
 
   {
+    'key'         => 'selfservice-svc_forward_svcpart',
+    'section'     => 'self-service',
+    'description' => 'Service for self-service forward editing.',
+    'type'        => 'select-part_svc',
+  },
+
+  {
     'key'         => 'selfservice-password_reset_verification',
     'section'     => 'self-service',
     'description' => 'If enabled, specifies the type of verification required for self-service password resets.',