From eb061f5119325e666f0dff40d4089e5c1df58e17 Mon Sep 17 00:00:00 2001 From: cvs2git Date: Sun, 16 Mar 2008 19:58:34 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'TRIXBOX_2_6'. --- httemplate/elements/tr-select-agent.html | 37 -------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 httemplate/elements/tr-select-agent.html (limited to 'httemplate/elements/tr-select-agent.html') diff --git a/httemplate/elements/tr-select-agent.html b/httemplate/elements/tr-select-agent.html deleted file mode 100644 index 69cd95cb0..000000000 --- a/httemplate/elements/tr-select-agent.html +++ /dev/null @@ -1,37 +0,0 @@ -% if ( scalar(@agents) == 1 ) { - - - -% } else { - - - <% $opt{'label'} || 'Agent' %> - - <% include( '/elements/select-agent.html', - 'curr_value' => $agentnum, - 'agents' => \@agents, - %opt, - ) - %> - - - -% } - -<%init> - -my %opt = @_; -my $agentnum = $opt{'curr_value'} || $opt{'value'}; - -my @agents; -if ( $opt{'agents'} ) { - #@agents = @{ $opt{'agents'} }; - #here is the agent virtualization - my $agentnums_href = $FS::CurrentUser::CurrentUser->agentnums_href; - @agents = grep $agentnums_href->{$_->agentnum}, @{ $opt{'agents'} }; - delete $opt{'agents'}; -} else { - @agents = $FS::CurrentUser::CurrentUser->agents; -} - - -- cgit v1.2.1