X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-agent_type.html;h=3fcbcd388e9de562f65bcca734583456d7dfcfea;hb=ea3ce8d7f076e7fecff4be7ae63bc413adb0adf5;hp=1b0dfd445d313433c6ce0db1d50bab103a0a8d0a;hpb=624b2d44625f69d71175c3348cae635d580c890b;p=freeside.git diff --git a/httemplate/elements/tr-select-agent_type.html b/httemplate/elements/tr-select-agent_type.html index 1b0dfd445..3fcbcd388 100644 --- a/httemplate/elements/tr-select-agent_type.html +++ b/httemplate/elements/tr-select-agent_type.html @@ -1,39 +1,27 @@ -% if ( scalar(@agent_types) == 1 ) { - - - -% } else { +%#% if ( scalar(@agent_types) == 1 ) { +%# +%# +%# +%#% } else { <% $opt{'label'} || 'Agent Type' %> <% include( '/elements/select-agent_type.html', 'curr_value' => $typenum, - 'agent_types' => \@agent_types, %opt, ) %> -% } +%#% } <%init> 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; -} +delete $opt{'agent_types'} if $opt{'agent_types'}; #?