X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=eg%2Ftable_template.pm;h=5da6f3b28405f54eb5770e7959c0672f1fef0abc;hp=7f74ac3423f6fc85fed4d55b53fe1ca3516970b3;hb=c2146ae32fdef80049abfa13098db2d45f3ebdd5;hpb=6981a417a49264fd4e03dc0167e070f7a4c128e1 diff --git a/eg/table_template.pm b/eg/table_template.pm index 7f74ac342..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.1 1999-08-04 08:03:03 ivan Exp $ - =head1 BUGS The author forgot to customize this manpage. @@ -110,27 +112,6 @@ The author forgot to customize this manpage. L, schema.html from the base documentation. -=head1 HISTORY - -ivan@voicenet.com 97-jul-1 - -added hfields -ivan@sisd.com 97-nov-13 - -$Log: table_template.pm,v $ -Revision 1.1 1999-08-04 08:03:03 ivan -move table subclass examples out of production directory - -Revision 1.4 1998/12/29 11:59:57 ivan -mostly properly OO, some work still to be done with svc_ stuff - -Revision 1.3 1998/11/15 04:33:00 ivan -updates for newest versoin - -Revision 1.2 1998/11/15 03:48:49 ivan -update for current version - - =cut 1;