projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 77532 - created method to display phone types
[freeside.git]
/
FS
/
FS
/
UI
/
Web.pm
diff --git
a/FS/FS/UI/Web.pm
b/FS/FS/UI/Web.pm
index
9eb49c4
..
76071d9
100644
(file)
--- 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');
$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;
$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;
};
}
return \@phones;
};
-
}
my %header2colormethod = (
}
my %header2colormethod = (