RT# 77532 - created method to display phone types
[freeside.git] / httemplate / search / contact.html
index 0f2b283..5def389 100644 (file)
@@ -153,7 +153,7 @@ my $get_phone_sub = sub {
 };
 
 my @phones;
-foreach my $phone_type ( qsearch({table=>'phone_type', order_by=>'weight'}) ) {
+foreach my $phone_type ( FS::phone_type->get_phone_types() ) {
   push @phones, { label => $phone_type->typename.' Phone', field => $get_phone_sub->($phone_type->phonetypenum), };
 }