diff options
author | ivan <ivan> | 2006-08-11 08:02:26 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-08-11 08:02:26 +0000 |
commit | e47e9758f480c664bfc3917d798cd69c7d354999 (patch) | |
tree | e776a5753a1214a797731f4da39518979f1400eb /httemplate/elements/select-agent.html | |
parent | dbc120189697e8306f62349c310f5410f8382491 (diff) |
virtualize referrals on customer addition
Diffstat (limited to 'httemplate/elements/select-agent.html')
-rw-r--r-- | httemplate/elements/select-agent.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/elements/select-agent.html b/httemplate/elements/select-agent.html index 78ec25f82..009cc6e06 100644 --- a/httemplate/elements/select-agent.html +++ b/httemplate/elements/select-agent.html @@ -1,8 +1,7 @@ <% my( $agentnum, %opt ) = @_; - my %select_opt = (); - $select_opt{'records'} = $opt{'agents'} + $opt{'records'} = delete $opt{'agents'} if $opt{'agents'}; %><%= include( '/elements/select-table.html', @@ -12,7 +11,8 @@ 'empty_label' => 'all', 'hashref' => { 'disabled' => '' }, 'extra_sql' => ' AND '. - $FS::CurrentUser::CurrentUser->agentnums_sql, - %select_opt, + $FS::CurrentUser::CurrentUser->agentnums_sql. + ' ORDER BY agent', + %opt, ) %> |