diff options
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/svc_Common.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/svc_Common.pm b/FS/FS/svc_Common.pm index 7bc155d9d..73e08f239 100644 --- a/FS/FS/svc_Common.pm +++ b/FS/FS/svc_Common.pm @@ -119,9 +119,11 @@ sub insert { my $svcnum = $self->svcnum; my $cust_svc; - unless ( $svcnum ) { + #unless ( $svcnum ) { + if ( ! $svcnum || ! qsearchs('cust_svc',{'svcnum'=>$self->svcnum} ) ) { $cust_svc = new FS::cust_svc ( { #hua?# 'svcnum' => $svcnum, + 'svcnum' => $self->svcnum, 'pkgnum' => $self->pkgnum, 'svcpart' => $self->svcpart, } ); |