summaryrefslogtreecommitdiffstats
path: root/template/en/default/global/userselect.html.tmpl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-07-05 04:05:58 +0200
committerlpsolit%gmail.com <>2007-07-05 04:05:58 +0200
commit223bd464bdfc6bcdff59e698ff3875eed7988207 (patch)
tree28e29367981b5104f829afe8b9405b2d52596737 /template/en/default/global/userselect.html.tmpl
parent09b34ef6593a89e0e9a364fe73a2b1aed80741e7 (diff)
downloadbugzilla-223bd464bdfc6bcdff59e698ff3875eed7988207.tar.gz
bugzilla-223bd464bdfc6bcdff59e698ff3875eed7988207.tar.xz
Bug 339437: Make flag requestee a select box and limit users to requestable only - Patch by Seth <laoseth@gmail.com> r/a=LpSolit
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") %]