summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhttemplate/edit/process/part_svc.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/edit/process/part_svc.cgi b/httemplate/edit/process/part_svc.cgi
index 937f7fb4c..97477d645 100755
--- a/httemplate/edit/process/part_svc.cgi
+++ b/httemplate/edit/process/part_svc.cgi
@@ -12,7 +12,9 @@ my $new = new FS::part_svc ( {
map { my $svcdb = $_;
map { ( $svcdb.'__'.$_, $svcdb.'__'.$_.'_flag' ) }
fields($svcdb)
- } qw( svc_acct svc_domain svc_acct_sm svc_forward svc_www ) )
+ } grep defined( $FS::Record::dbdef->table($_) ),
+ qw( svc_acct svc_domain svc_acct_sm svc_forward svc_www )
+ )
} );
my $error;