fix deletion of accounts connected to virtual hosts
authorivan <ivan>
Wed, 16 Jun 2004 23:59:43 +0000 (23:59 +0000)
committerivan <ivan>
Wed, 16 Jun 2004 23:59:43 +0000 (23:59 +0000)
FS/FS/svc_acct.pm

index 6ea3043..f66c715 100644 (file)
@@ -465,7 +465,7 @@ sub delete {
     if qsearch( 'svc_forward', { 'dstsvc' => $self->svcnum } );
 
   return "Can't delete an account with (svc_www) web service!"
     if qsearch( 'svc_forward', { 'dstsvc' => $self->svcnum } );
 
   return "Can't delete an account with (svc_www) web service!"
-    if qsearch( 'svc_www', { 'usersvc' => $self->usersvc } );
+    if qsearch( 'svc_www', { 'usersvc' => $self->svcnum } );
 
   # what about records in session ? (they should refer to history table)
 
 
   # what about records in session ? (they should refer to history table)