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;
}
},
{
+ '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.',