stray closing /TABLE in the no-ticket case
[freeside.git] / FS / FS / contact_phone.pm
index 0eb2166..46d6a9b 100644 (file)
@@ -2,8 +2,6 @@ package FS::contact_phone;
 use base qw( FS::Record );
 
 use strict;
-use FS::Record qw( qsearch qsearchs );
-use FS::contact;
 
 =head1 NAME
 
@@ -139,9 +137,9 @@ sub phonenum_pretty {
 
 }
 
-sub contact {
+sub typename {
   my $self = shift;
-  qsearchs( 'contact', { 'contactnum' => $self->contactnum } );
+  $self->phone_type->typename;
 }
 
 =back