From 223bd464bdfc6bcdff59e698ff3875eed7988207 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 5 Jul 2007 02:05:58 +0000 Subject: Bug 339437: Make flag requestee a select box and limit users to requestable only - Patch by Seth r/a=LpSolit --- template/en/default/global/userselect.html.tmpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'template/en/default/global') 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 @@ [% 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") %]