X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FUI%2FWeb.pm;h=2d12f7d14b6273bdcb5d8085a2b5de8d6d73d414;hp=9eb49c430be42b9028605dd73e808732570afe65;hb=a3092d901441a8640c1f7f9be4b0374146e43b0a;hpb=a98de57aee063b3ff737c283336f83b2e50e14a8 diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index 9eb49c430..2d12f7d14 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -357,13 +357,13 @@ 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; my @phones; - foreach ($self->contact_list_name_phones) { + foreach (FS::cust_main::contact_list_name_phones($self)) { my $data = [ { 'data' => $_->first.' '.$_->last.' '.FS::contact_phone::phonenum_pretty($_), @@ -373,7 +373,6 @@ foreach my $phone_type ( qsearch({table=>'phone_type', order_by=>'weight'}) ) { } return \@phones; }; - } my %header2colormethod = ( @@ -476,7 +475,7 @@ sub cust_sql_fields { } } - foreach my $field (qw(daytime night mobile fax )) { + foreach my $field (qw(daytime night mobile fax)) { push @fields, $field if (grep { $_ eq $field } @cust_fields); } push @fields, 'agent_custid';