X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-agent_type.html;h=9ea943b516ed8c1010732809e23b65be8e80efff;hb=f8066fa6a33f4ac33beec675b17de96c8c0a274b;hp=1b0dfd445d313433c6ce0db1d50bab103a0a8d0a;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;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', {});