summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-03-04 18:33:52 -0600
committerJonathan Prykop <jonathan@freeside.biz>2015-03-09 21:27:57 -0500
commit64489396dd98a369aa2c38d3802400c2c508f136 (patch)
treeaf1cc7073d003089997aa6dd88a678ba352807a2 /httemplate/elements
parenta4b5a3e0da1e747e5937be1cc69841158743f8a9 (diff)
RT#22952: Employee drop down list in reports shows employee users for all agents
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/select-user.html13
1 files changed, 1 insertions, 12 deletions
diff --git a/httemplate/elements/select-user.html b/httemplate/elements/select-user.html
index ec2341be6..e77788f61 100644
--- a/httemplate/elements/select-user.html
+++ b/httemplate/elements/select-user.html
@@ -17,17 +17,6 @@
my %opt = @_;
-unless ( $opt{'access_user'} ) {
-
- my $sth = dbh->prepare("
- SELECT usernum, username FROM access_user
- WHERE disabled = '' or disabled IS NULL
- ") or die dbh->errstr;
- $sth->execute or die $sth->errstr;
- while ( my $row = $sth->fetchrow_arrayref ) {
- $opt{'access_user'}->{$row->[0]} = $row->[1];
- }
-
-}
+$opt{'access_user'} ||= $FS::CurrentUser::CurrentUser->access_users_hashref();
</%init>