X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fdeploy_zone_block.pm;h=2ac18e2fefe83a37a5f9e39d7d2137ff0ec01824;hp=58234b9240f81976d67f830cf603fa08009a39c1;hb=ff27c3f36240aee48ed50153dd5d8fe3ac3f2443;hpb=7c370a4579d1ed8b81dba2fb5fae9978b283b49e diff --git a/FS/FS/deploy_zone_block.pm b/FS/FS/deploy_zone_block.pm index 58234b924..2ac18e2fe 100644 --- a/FS/FS/deploy_zone_block.pm +++ b/FS/FS/deploy_zone_block.pm @@ -43,10 +43,6 @@ L foreign key for the zone. U.S. census block number (15 digits). -=item censusyear - -The year of the census map where the block appeared or was last verified. - =back =head1 METHODS @@ -107,10 +103,13 @@ sub check { $self->ut_numbern('blocknum') || $self->ut_number('zonenum') || $self->ut_number('censusblock') - || $self->ut_number('censusyear') ; return $error if $error; + if ($self->get('censusblock') !~ /^(\d{15})$/) { + return "Illegal census block number (must be 15 digits)"; + } + $self->SUPER::check; }