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]
/
httemplate
/
search
/
contact.html
diff --git
a/httemplate/search/contact.html
b/httemplate/search/contact.html
index
0f2b283
..
5def389
100644
(file)
--- a/
httemplate/search/contact.html
+++ b/
httemplate/search/contact.html
@@
-153,7
+153,7
@@
my $get_phone_sub = sub {
};
my @phones;
};
my @phones;
-foreach my $phone_type (
qsearch({table=>'phone_type', order_by=>'weight'}
) ) {
+foreach my $phone_type (
FS::phone_type->get_phone_types(
) ) {
push @phones, { label => $phone_type->typename.' Phone', field => $get_phone_sub->($phone_type->phonetypenum), };
}
push @phones, { label => $phone_type->typename.' Phone', field => $get_phone_sub->($phone_type->phonetypenum), };
}