X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-agent_type.html;h=3e6ce0752f1a726baa3ece9dbf9257463fa63c29;hb=b6260b4f39cf34b9e0e5b8560ef88c8881ba0766;hp=1b0dfd445d313433c6ce0db1d50bab103a0a8d0a;hpb=63a268637b2d51a8766412617724b9436439deb6;p=freeside.git
diff --git a/httemplate/elements/tr-select-agent_type.html b/httemplate/elements/tr-select-agent_type.html
index 1b0dfd445..3e6ce0752 100644
--- a/httemplate/elements/tr-select-agent_type.html
+++ b/httemplate/elements/tr-select-agent_type.html
@@ -7,12 +7,10 @@
<% $opt{'label'} || 'Agent Type' %> |
- <% include( '/elements/select-agent_type.html',
- 'curr_value' => $typenum,
- 'agent_types' => \@agent_types,
- %opt,
- )
- %>
+ <& /elements/select-agent_type.html,
+ 'curr_value' => $typenum,
+ %opt,
+ &>
|
@@ -23,17 +21,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', { 'disabled' => '' });
%init>