X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_svc_router.pm;h=df04cc9fb4e6f940bceff66f7b4fdcf544c120cd;hp=0b23ab58085ed241e2cad8fa70c62115c462617e;hb=f583418a23dfb001978d3abf8476670d5adb96af;hpb=5d2eb9bf6bc24562ed6cff037379e78a2da7a654 diff --git a/FS/FS/part_svc_router.pm b/FS/FS/part_svc_router.pm index 0b23ab580..df04cc9fb 100755 --- a/FS/FS/part_svc_router.pm +++ b/FS/FS/part_svc_router.pm @@ -13,7 +13,8 @@ sub table { 'part_svc_router'; } sub check { my $self = shift; my $error = - $self->ut_foreign_key('svcpart', 'part_svc', 'svcpart') + $self->ut_numbern('svcrouternum') + || $self->ut_foreign_key('svcpart', 'part_svc', 'svcpart') || $self->ut_foreign_key('routernum', 'router', 'routernum'); return $error if $error; ''; #no error