X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-agent_type.html;h=3e6ce0752f1a726baa3ece9dbf9257463fa63c29;hp=1b0dfd445d313433c6ce0db1d50bab103a0a8d0a;hb=833cfe5c9938d33c3e6b97ed610c25a7afa6eb04;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1 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' => '' });