summaryrefslogtreecommitdiff
path: root/FS/FS/UI
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2019-05-22 21:15:35 -0400
committerChristopher Burger <burgerc@freeside.biz>2019-05-23 07:46:40 -0400
commit5b9562f8e03ae6efea0c2eaa90341083744fa529 (patch)
treef976d42d3433a329a1246a99c9ef22ad5eb3ff29 /FS/FS/UI
parenta11b765362c56117c4b944096184e3e3e55bffac (diff)
RT# 77532 - created method to display phone types
Diffstat (limited to 'FS/FS/UI')
-rw-r--r--FS/FS/UI/Web.pm3
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 = (