X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_virtual_field.pm;h=f5a416110e44277894446e96dc9fb3bbaa162630;hp=f6a8fe74582c067afdf08da51fb754bd00b9ec18;hb=74e058c8a010ef6feb539248a550d0bb169c1e94;hpb=f7fd2a3e34da751cbc02bbf215e99c6dc89adc15 diff --git a/FS/FS/part_virtual_field.pm b/FS/FS/part_virtual_field.pm index f6a8fe745..f5a416110 100755 --- a/FS/FS/part_virtual_field.pm +++ b/FS/FS/part_virtual_field.pm @@ -2,7 +2,9 @@ package FS::part_virtual_field; use strict; use vars qw( @ISA ); -use FS::Record qw( qsearchs qsearch dbdef ); +use FS::Record; +use FS::Schema qw( dbdef ); +use CGI qw(escapeHTML); @ISA = qw( FS::Record ); @@ -161,7 +163,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 @@ -243,7 +245,7 @@ sub widget { } } else { $text .= q!length) { $text .= q! SIZE="! . $self->length . q!"!; }