Legal Keywords in 2.17.3

Jon Wilmoth JWilmoth at starbucks.com
Wed Apr 2 23:44:22 UTC 2003


Thanks!  That did the trick.

BTW...Is anyone interested in changing the keywords from an open text
box to a select list?  If so, I'd be more than willing to contribute a
patch to 2.17.3!

-----Original Message-----
From: David Miller [mailto:justdave at syndicomm.com] 
Sent: Wednesday, April 02, 2003 1:56 PM
To: developers at bugzilla.org
Subject: Re: Legal Keywords in 2.17.3

On 4/2/03 1:52 PM -0800, Myk Melez wrote:

> Jon Wilmoth wrote:
>
>>I'd like to customize the keywords text field to be a select element.
>>Previously (2.16.x) I was able to modify bug_form.pl to add this list.
>>However, that is now gone in 2.17.3.  Where is the best place to
>>initialize a template variable that is an array of all the available
>>keywords (Assuming one doesn't already exist)?
>>
>>
> See the rotted code in bug 80169
> (http://bugzilla.mozilla.org/show_bug.cgi?id=80169) for another
> pre-templatization implementation of this feature.
>
> I would add the code to show_bug.cgi after the GetVersionTable call
and
> just set $vars->{keywords} to @::legal_keywords or %::keywordsbyname.

Actually, show_bug.cgi isn't a good place to put it because it'll be
missing when the bug form is displayed after changing a bug in
process_bug.

I'd probably put it in the choices sub in Bug.pm.
-- 
Dave Miller      Project Leader, Bugzilla Bug Tracking System
http://www.justdave.net/             http://www.bugzilla.org/
----
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=jwilmoth@starbucks.com>




More information about the developers mailing list