summaryrefslogtreecommitdiffstats
path: root/template/en/default/global/userselect.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/global/userselect.html.tmpl')
-rw-r--r--template/en/default/global/userselect.html.tmpl7
1 files changed, 6 insertions, 1 deletions
diff --git a/template/en/default/global/userselect.html.tmpl b/template/en/default/global/userselect.html.tmpl
index 398300b52..8fa7e0360 100644
--- a/template/en/default/global/userselect.html.tmpl
+++ b/template/en/default/global/userselect.html.tmpl
@@ -25,6 +25,7 @@
# emptyok: optional, select only; if true, prepend menu option to start of select
# multiple: optional, do multiselect box, value is size (height) of box
# do_not_change: optional, contains the string meaning "do not alter this role"
+ # custom_userlist: optional, specify a limited list of users to use
#%]
[% IF Param("usemenuforusers") %]
@@ -45,7 +46,11 @@
</option>
[% END %]
- [% FOREACH tmpuser = user.get_userlist %]
+ [% UNLESS custom_userlist %]
+ [% custom_userlist = user.get_userlist %]
+ [% END %]
+
+ [% FOREACH tmpuser = custom_userlist %]
[% IF tmpuser.visible OR value.match("\\b$tmpuser.login\\b") %]
<option value="[% tmpuser.login FILTER html %]"
[% " selected=\"selected\"" IF value.match("\\b$tmpuser.login\\b") %]