svc_cable.providernum is optional, RT#22009
authorIvan Kohler <ivan@freeside.biz>
Thu, 10 Oct 2013 15:20:49 +0000 (08:20 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 10 Oct 2013 15:20:49 +0000 (08:20 -0700)
FS/FS/svc_cable.pm

index 6575a0b..672a34d 100644 (file)
@@ -142,7 +142,7 @@ sub check {
 
   my $error = 
        $self->ut_numbern('svcnum')
-    || $self->ut_foreign_key('providernum', 'cable_provider', 'providernum')
+    || $self->ut_foreign_keyn('providernum', 'cable_provider', 'providernum')
     || $self->ut_alphan('ordernum')
     || $self->ut_foreign_key('modelnum', 'cable_model', 'modelnum')
     || $self->ut_alpha('serialnum')