X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export_option.pm;h=17bcf0059f27478f0242339743c51a32ed9731ef;hb=6a509099343ed155525c4304f1ad742cc6e4ce59;hp=61ea956ae9b25f88dd6db39e2a2bf81c743a96d0;hpb=f1038a648b3d53db925b23519e7cd2a30c6837ed;p=freeside.git diff --git a/FS/FS/part_export_option.pm b/FS/FS/part_export_option.pm index 61ea956ae..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,9 +101,9 @@ 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_textn('optionvalue') + || $self->ut_anything('optionvalue') ; return $error if $error; @@ -115,7 +112,7 @@ sub check { #check options & values? - ''; #no error + $self->SUPER::check; } =back