X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=eg%2Ftable_template.pm;h=5da6f3b28405f54eb5770e7959c0672f1fef0abc;hp=2cc1e1d6ee2b544f87727af296cb36f2b04c9a46;hb=d9649d434ba0955cd079d70e885b9f33f5ad85b5;hpb=52b07e8abd3946578a6c2701ec9e5195ec6b17e6 diff --git a/eg/table_template.pm b/eg/table_template.pm index 2cc1e1d6e..5da6f3b28 100644 --- a/eg/table_template.pm +++ b/eg/table_template.pm @@ -93,15 +93,17 @@ and replace methods. sub check { my $self = shift; - ''; #no error + my $error = + $self->ut_numbern('primary_key') + || $self->ut_number('validate_other_fields') + ; + return $error if $error; + + $self->SUPER::check; } =back -=head1 VERSION - -$Id: table_template.pm,v 1.2 2000-10-27 20:15:50 ivan Exp $ - =head1 BUGS The author forgot to customize this manpage.