knob template: scroll down list of users

Colin Ogilvie bugzilla at colinogilvie.co.uk
Fri Jun 10 16:16:40 UTC 2005


Martin d'Anjou wrote:

>Hi,
>
>Please tell me if I understand this right. I want the "Reassign bug to" 
>knob to be a pull down menu of all the login_names (or real names) instead 
>of a text box. The way I figured out to do this is the following:
>
>1) modify process_bug.cgi and add the list of names to $vars
>   e.g. get a list of users from the database and
>   $vars->{'users'} = \@users
>
>2) modify the knob.html.tmpl file and build the HTML menu with a
>   [% FOREACH u = users %] loop.
>
>Am I on the right track here? Other suggestions are welcome as well.
>
In the current CVS tip version, which will become 2.20, there is a
"usemenuforusers" paramater which will change this for you. You can see
details in https://bugzilla.mozilla.org/show_bug.cgi?id=251669 which is
the bug for implementing it.

Colin




More information about the developers mailing list