1 % if ( scalar(@agent_types) == 1 ) {
3 <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'typenum' %>" VALUE="<% $agent_types[0]->typenum %>">
8 <TD ALIGN="right"><% $opt{'label'} || 'Agent Type' %></TD>
10 <% include( '/elements/select-agent_type.html',
11 'curr_value' => $typenum,
12 'agent_types' => \@agent_types,
24 my $typenum = $opt{'curr_value'} || $opt{'value'};
27 if ( $opt{'agent_types'} ) {
28 #@agents = @{ $opt{'agents'} };
30 #here is the agent virtualization
31 # my $agentnums_href = $FS::CurrentUser::CurrentUser->agentnums_href;
32 # @agent_types = grep $agentnums_href->{$_->agentnum}, @{ $opt{'agent_types'} };
34 delete $opt{'agent_types'};
36 # @agents = $FS::CurrentUser::CurrentUser->agents;