projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
event refactor, landing on HEAD!
[freeside.git]
/
httemplate
/
elements
/
select-agent.html
diff --git
a/httemplate/elements/select-agent.html
b/httemplate/elements/select-agent.html
index
3107ff9
..
54069a5
100644
(file)
--- a/
httemplate/elements/select-agent.html
+++ b/
httemplate/elements/select-agent.html
@@
-1,10
+1,3
@@
-%
-% my( $agentnum, %opt ) = @_;
-%
-% $opt{'records'} = delete $opt{'agents'}
-% if $opt{'agents'};
-%
-%
<% include( '/elements/select-table.html',
'table' => 'agent',
'name_col' => 'agent',
<% include( '/elements/select-table.html',
'table' => 'agent',
'name_col' => 'agent',
@@
-17,3
+10,12
@@
%opt,
)
%>
%opt,
)
%>
+<%init>
+
+my %opt = @_;
+my $agentnum = $opt{'curr_value'} || $opt{'value'};
+
+$opt{'records'} = delete $opt{'agents'}
+ if $opt{'agents'};
+
+</%init>