X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-agent_type.html;h=9ea943b516ed8c1010732809e23b65be8e80efff;hb=c77ff7d09126d7040e5f9aa6e0856f6359d91427;hp=1b0dfd445d313433c6ce0db1d50bab103a0a8d0a;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;p=freeside.git
diff --git a/httemplate/elements/tr-select-agent_type.html b/httemplate/elements/tr-select-agent_type.html
index 1b0dfd445..9ea943b51 100644
--- a/httemplate/elements/tr-select-agent_type.html
+++ b/httemplate/elements/tr-select-agent_type.html
@@ -9,7 +9,6 @@
<% include( '/elements/select-agent_type.html',
'curr_value' => $typenum,
- 'agent_types' => \@agent_types,
%opt,
)
%>
@@ -23,17 +22,6 @@
my %opt = @_;
my $typenum = $opt{'curr_value'} || $opt{'value'};
-my @agent_types = ();
-if ( $opt{'agent_types'} ) {
- #@agents = @{ $opt{'agents'} };
-
- #here is the agent virtualization
-# my $agentnums_href = $FS::CurrentUser::CurrentUser->agentnums_href;
-# @agent_types = grep $agentnums_href->{$_->agentnum}, @{ $opt{'agent_types'} };
-
- delete $opt{'agent_types'};
-} else {
-# @agents = $FS::CurrentUser::CurrentUser->agents;
-}
+my @agent_types = qsearch('agent_type', {});
%init>
|