X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FUI%2FWeb.pm;h=76071d90098228d94e2654a7cbed5017d3caa6a9;hp=9eb49c430be42b9028605dd73e808732570afe65;hb=2b199169bd62b8582eedb872b4e76bee48899e81;hpb=a98de57aee063b3ff737c283336f83b2e50e14a8 diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index 9eb49c430..76071d900 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -357,7 +357,7 @@ sub cust_header { $header2method{'Cust#'} = 'display_custnum' if $conf->exists('cust_main-default_agent_custid'); -foreach my $phone_type ( qsearch({table=>'phone_type', order_by=>'weight'}) ) { +foreach my $phone_type ( FS::phone_type->get_phone_types() ) { $header2method{'Contact '.$phone_type->typename.' phone(s)'} = sub { my $self = shift; my $num = $phone_type->phonetypenum; @@ -373,7 +373,6 @@ foreach my $phone_type ( qsearch({table=>'phone_type', order_by=>'weight'}) ) { } return \@phones; }; - } my %header2colormethod = (