summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-10-10 08:20:53 -0700
committerIvan Kohler <ivan@freeside.biz>2013-10-10 08:20:53 -0700
commit5dce18294d8c98e87d60b03708f6c1b642a32e5b (patch)
treea7784dff2cf38e55e236476c13ce3922773e6c58
parent07c887e7a126a150f870be25976b81a3da5ab0a1 (diff)
svc_cable.providernum is optional, RT#22009
-rw-r--r--FS/FS/svc_cable.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/svc_cable.pm b/FS/FS/svc_cable.pm
index 4c071d608..26f4c89b1 100644
--- a/FS/FS/svc_cable.pm
+++ b/FS/FS/svc_cable.pm
@@ -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')