[freeside-commits] freeside/httemplate/elements tr-select-agent_type.html, 1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Wed Apr 20 14:17:30 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv30253
Modified Files:
tr-select-agent_type.html
Log Message:
fix agent type condition, RT#12539
Index: tr-select-agent_type.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/tr-select-agent_type.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- tr-select-agent_type.html 1 Aug 2007 22:25:10 -0000 1.1
+++ tr-select-agent_type.html 20 Apr 2011 21:17:28 -0000 1.2
@@ -1,39 +1,27 @@
-% if ( scalar(@agent_types) == 1 ) {
-
- <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'typenum' %>" VALUE="<% $agent_types[0]->typenum %>">
-
-% } else {
+%#% if ( scalar(@agent_types) == 1 ) {
+%#
+%# <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'typenum' %>" VALUE="<% $agent_types[0]->typenum %>">
+%#
+%#% } else {
<TR>
<TD ALIGN="right"><% $opt{'label'} || 'Agent Type' %></TD>
<TD>
<% include( '/elements/select-agent_type.html',
'curr_value' => $typenum,
- 'agent_types' => \@agent_types,
%opt,
)
%>
</TD>
</TR>
-% }
+%#% }
<%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'}; #?
</%init>
More information about the freeside-commits
mailing list