diff options
author | Christopher Burger <burgerc@freeside.biz> | 2019-05-22 21:15:35 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2019-05-23 07:46:40 -0400 |
commit | 5b9562f8e03ae6efea0c2eaa90341083744fa529 (patch) | |
tree | f976d42d3433a329a1246a99c9ef22ad5eb3ff29 /FS/FS/UI | |
parent | a11b765362c56117c4b944096184e3e3e55bffac (diff) |
RT# 77532 - created method to display phone types
Diffstat (limited to 'FS/FS/UI')
-rw-r--r-- | FS/FS/UI/Web.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index edd3ca8..4bbe467 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -354,7 +354,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; @@ -370,7 +370,6 @@ foreach my $phone_type ( qsearch({table=>'phone_type', order_by=>'weight'}) ) { } return \@phones; }; - } my %header2colormethod = ( |