X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export_option.pm;h=17bcf0059f27478f0242339743c51a32ed9731ef;hp=33b5e5a675600aae7100b48c94448f5bec3f94eb;hb=674cb2d9d7105f4cc2871539b2e9f7088cdaa750;hpb=58d44fbe5eb9ab32e6d87063a4a3b22ddba9a828 diff --git a/FS/FS/part_export_option.pm b/FS/FS/part_export_option.pm index 33b5e5a67..17bcf0059 100644 --- a/FS/FS/part_export_option.pm +++ b/FS/FS/part_export_option.pm @@ -1,11 +1,8 @@ package FS::part_export_option; +use base qw(FS::Record); use strict; -use vars qw( @ISA ); -use FS::Record qw( qsearch qsearchs ); -use FS::part_export; - -@ISA = qw(FS::Record); +use FS::Record qw( qsearchs ); #qw( qsearch qsearchs ); =head1 NAME @@ -104,7 +101,7 @@ sub check { my $error = $self->ut_numbern('optionnum') - || $self->ut_number('exportnum') + || $self->ut_foreign_key('exportnum', 'part_export', 'exportnum') || $self->ut_alpha('optionname') || $self->ut_anything('optionvalue') ;