have the UI use full country names, and state names outside the US...
[freeside.git] / FS / FS / part_virtual_field.pm
index 03c34cc..992d449 100755 (executable)
@@ -2,7 +2,8 @@ package FS::part_virtual_field;
 
 use strict;
 use vars qw( @ISA );
-use FS::Record qw( qsearchs qsearch dbdef );
+use FS::Record qw( qsearchs qsearch );
+use FS::Schema qw( dbdef );
 
 @ISA = qw( FS::Record );
 
@@ -161,7 +162,7 @@ sub check {
 
   # Make sure it's a real table with a numeric primary key
   my ($table, $pkey);
-  if($table = $FS::Record::dbdef->table($self->dbtable)) {
+  if($table = dbdef->table($self->dbtable)) {
     if($pkey = $table->primary_key) {
       if($table->column($pkey)->type =~ /int/i) {
         # this is what it should be
@@ -259,10 +260,6 @@ sub widget {
   return $text;
 }
 
-=head1 VERSION
-
-$Id: part_virtual_field.pm,v 1.2 2003-08-05 00:20:45 khoff Exp $
-
 =head1 NOTES
 
 =head2 Semantics of check_block: