projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
virtualize referrals on customer addition
[freeside.git]
/
httemplate
/
elements
/
select-agent.html
diff --git
a/httemplate/elements/select-agent.html
b/httemplate/elements/select-agent.html
index
78ec25f
..
009cc6e
100644
(file)
--- a/
httemplate/elements/select-agent.html
+++ b/
httemplate/elements/select-agent.html
@@
-1,8
+1,7
@@
<%
my( $agentnum, %opt ) = @_;
<%
my( $agentnum, %opt ) = @_;
- my %select_opt = ();
- $select_opt{'records'} = $opt{'agents'}
+ $opt{'records'} = delete $opt{'agents'}
if $opt{'agents'};
%><%= include( '/elements/select-table.html',
if $opt{'agents'};
%><%= include( '/elements/select-table.html',
@@
-12,7
+11,8
@@
'empty_label' => 'all',
'hashref' => { 'disabled' => '' },
'extra_sql' => ' AND '.
'empty_label' => 'all',
'hashref' => { 'disabled' => '' },
'extra_sql' => ' AND '.
- $FS::CurrentUser::CurrentUser->agentnums_sql,
- %select_opt,
+ $FS::CurrentUser::CurrentUser->agentnums_sql.
+ ' ORDER BY agent',
+ %opt,
)
%>
)
%>