RT# 83436 - fixed Advanced Broadband Service Report when displaying phone numbers
[freeside.git] / FS / FS / UI / Web.pm
index 76071d9..2d12f7d 100644 (file)
@@ -363,7 +363,7 @@ foreach my $phone_type ( FS::phone_type->get_phone_types() ) {
     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($_),
@@ -475,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';