X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fcontact.html;h=308b846bcea9e28bfd87049fa427174a1e73f775;hb=07ed221540128b8c75f4cb5a2af1e01b25fa8e18;hp=48b5e2ce236e891af1909d9fa260f038ca85b510;hpb=d5988a9f7a3617de33da3058f2e9f1151b24420e;p=freeside.git diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index 48b5e2ce2..308b846bc 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -180,7 +180,7 @@ unless ($opt{'for_prospect'}) { } my $first = 0; -foreach my $phone_type ( qsearch({table=>'phone_type', order_by=>'weight'}) ) { +foreach my $phone_type ( FS::phone_type->get_phone_types() ) { next if $phone_type->typename =~ /^(Home|Fax)$/; my $f = 'phonetypenum'.$phone_type->phonetypenum; $label{$f} = $phone_type->typename. ' phone'; @@ -206,6 +206,6 @@ my $js = qq( else { document.getElementById("changepw$id\_password").disabled = 'true'; } return false; } -); +) unless $opt{'for_prospect'};