X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fcontact.html;fp=httemplate%2Fsearch%2Fcontact.html;h=5def389cccb663a26cd7d7d63169806c212b8026;hp=0f2b283b5c1decb8fa52168a1d8e0ff1f384946a;hb=2b199169bd62b8582eedb872b4e76bee48899e81;hpb=a98de57aee063b3ff737c283336f83b2e50e14a8 diff --git a/httemplate/search/contact.html b/httemplate/search/contact.html index 0f2b283b5..5def389cc 100644 --- a/httemplate/search/contact.html +++ b/httemplate/search/contact.html @@ -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), }; }