X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcontact_phone.pm;h=46d6a9b6b6ab0c5e06bb26bf1765e5b755641f3b;hp=0eb216668dfee6e4a5fa4873f0af4712e0e1931f;hb=HEAD;hpb=df1ebf662a9fc3f89503036e0dbf6833c1b95f9e diff --git a/FS/FS/contact_phone.pm b/FS/FS/contact_phone.pm index 0eb216668..46d6a9b6b 100644 --- a/FS/FS/contact_phone.pm +++ b/FS/FS/contact_phone.pm @@ -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